Struct google_api_proto::google::appengine::v1::ApiConfigHandler
source · pub struct ApiConfigHandler {
pub auth_fail_action: i32,
pub login: i32,
pub script: String,
pub security_level: i32,
pub url: String,
}
Expand description
Google Cloud Endpoints configuration for API handlers.
Fields§
§auth_fail_action: i32
Action to take when users access resources that require
authentication. Defaults to redirect
.
login: i32
Level of login required to access this resource. Defaults to
optional
.
script: String
Path to the script from the application root directory.
security_level: i32
Security (HTTPS) enforcement for this URL.
url: String
URL to serve the endpoint at.
Implementations§
source§impl ApiConfigHandler
impl ApiConfigHandler
sourcepub fn auth_fail_action(&self) -> AuthFailAction
pub fn auth_fail_action(&self) -> AuthFailAction
Returns the enum value of auth_fail_action
, or the default if the field is set to an invalid enum value.
sourcepub fn set_auth_fail_action(&mut self, value: AuthFailAction)
pub fn set_auth_fail_action(&mut self, value: AuthFailAction)
Sets auth_fail_action
to the provided enum value.
sourcepub fn login(&self) -> LoginRequirement
pub fn login(&self) -> LoginRequirement
Returns the enum value of login
, or the default if the field is set to an invalid enum value.
sourcepub fn set_login(&mut self, value: LoginRequirement)
pub fn set_login(&mut self, value: LoginRequirement)
Sets login
to the provided enum value.
sourcepub fn security_level(&self) -> SecurityLevel
pub fn security_level(&self) -> SecurityLevel
Returns the enum value of security_level
, or the default if the field is set to an invalid enum value.
sourcepub fn set_security_level(&mut self, value: SecurityLevel)
pub fn set_security_level(&mut self, value: SecurityLevel)
Sets security_level
to the provided enum value.
Trait Implementations§
source§impl Clone for ApiConfigHandler
impl Clone for ApiConfigHandler
source§fn clone(&self) -> ApiConfigHandler
fn clone(&self) -> ApiConfigHandler
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ApiConfigHandler
impl Debug for ApiConfigHandler
source§impl Default for ApiConfigHandler
impl Default for ApiConfigHandler
source§impl Message for ApiConfigHandler
impl Message for ApiConfigHandler
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for ApiConfigHandler
impl PartialEq for ApiConfigHandler
source§fn eq(&self, other: &ApiConfigHandler) -> bool
fn eq(&self, other: &ApiConfigHandler) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ApiConfigHandler
Auto Trait Implementations§
impl Freeze for ApiConfigHandler
impl RefUnwindSafe for ApiConfigHandler
impl Send for ApiConfigHandler
impl Sync for ApiConfigHandler
impl Unpin for ApiConfigHandler
impl UnwindSafe for ApiConfigHandler
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request