[][src]Enum gcp_client::google::appengine::v1::LoginRequirement

#[repr(i32)]pub enum LoginRequirement {
    LoginUnspecified,
    LoginOptional,
    LoginAdmin,
    LoginRequired,
}

Methods to restrict access to a URL based on login status.

Variants

LoginUnspecified

Not specified. LOGIN_OPTIONAL is assumed.

LoginOptional

Does not require that the user is signed in.

LoginAdmin

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

If the user has signed in, the handler proceeds normally. Otherwise, the auth_fail_action is taken.

Implementations

impl LoginRequirement[src]

pub fn is_valid(value: i32) -> bool[src]

Returns true if value is a variant of LoginRequirement.

pub fn from_i32(value: i32) -> Option<LoginRequirement>[src]

Converts an i32 to a LoginRequirement, or None if value is not a valid variant.

Trait Implementations

impl Clone for LoginRequirement[src]

impl Copy for LoginRequirement[src]

impl Debug for LoginRequirement[src]

impl Default for LoginRequirement[src]

impl Eq for LoginRequirement[src]

impl From<LoginRequirement> for i32[src]

impl Hash for LoginRequirement[src]

impl Ord for LoginRequirement[src]

impl PartialEq<LoginRequirement> for LoginRequirement[src]

impl PartialOrd<LoginRequirement> for LoginRequirement[src]

impl StructuralEq for LoginRequirement[src]

impl StructuralPartialEq for LoginRequirement[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]