Enum google_api_proto::google::appengine::v1::LoginRequirement
source · #[repr(i32)]pub enum LoginRequirement {
LoginUnspecified = 0,
LoginOptional = 1,
LoginAdmin = 2,
LoginRequired = 3,
}
Expand description
Methods to restrict access to a URL based on login status.
Variants§
LoginUnspecified = 0
Not specified. LOGIN_OPTIONAL
is assumed.
LoginOptional = 1
Does not require that the user is signed in.
LoginAdmin = 2
If the user is not signed in, the auth_fail_action
is taken.
In addition, if the user is not an administrator for the
application, they are given an error message regardless of
auth_fail_action
. If the user is an administrator, the handler
proceeds.
LoginRequired = 3
If the user has signed in, the handler proceeds normally. Otherwise, the auth_fail_action is taken.
Implementations§
source§impl LoginRequirement
impl LoginRequirement
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Clone for LoginRequirement
impl Clone for LoginRequirement
source§fn clone(&self) -> LoginRequirement
fn clone(&self) -> LoginRequirement
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for LoginRequirement
impl Debug for LoginRequirement
source§impl Default for LoginRequirement
impl Default for LoginRequirement
source§fn default() -> LoginRequirement
fn default() -> LoginRequirement
source§impl From<LoginRequirement> for i32
impl From<LoginRequirement> for i32
source§fn from(value: LoginRequirement) -> i32
fn from(value: LoginRequirement) -> i32
source§impl Hash for LoginRequirement
impl Hash for LoginRequirement
source§impl Ord for LoginRequirement
impl Ord for LoginRequirement
source§fn cmp(&self, other: &LoginRequirement) -> Ordering
fn cmp(&self, other: &LoginRequirement) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for LoginRequirement
impl PartialEq for LoginRequirement
source§fn eq(&self, other: &LoginRequirement) -> bool
fn eq(&self, other: &LoginRequirement) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for LoginRequirement
impl PartialOrd for LoginRequirement
source§fn partial_cmp(&self, other: &LoginRequirement) -> Option<Ordering>
fn partial_cmp(&self, other: &LoginRequirement) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for LoginRequirement
impl TryFrom<i32> for LoginRequirement
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(value: i32) -> Result<LoginRequirement, UnknownEnumValue>
fn try_from(value: i32) -> Result<LoginRequirement, UnknownEnumValue>
impl Copy for LoginRequirement
impl Eq for LoginRequirement
impl StructuralPartialEq for LoginRequirement
Auto Trait Implementations§
impl Freeze for LoginRequirement
impl RefUnwindSafe for LoginRequirement
impl Send for LoginRequirement
impl Sync for LoginRequirement
impl Unpin for LoginRequirement
impl UnwindSafe for LoginRequirement
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§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