[][src]Struct gcp_client::google::api::AuthenticationRule

pub struct AuthenticationRule {
    pub selector: String,
    pub oauth: Option<OAuthRequirements>,
    pub allow_without_credential: bool,
    pub requirements: Vec<AuthRequirement>,
}

Authentication rules for the service.

By default, if a method has any authentication requirements, every request must include a valid credential matching one of the requirements. It's an error to include more than one kind of credential in a single request.

If a method doesn't have any auth requirements, request credentials will be ignored.

Fields

selector: String

Selects the methods to which this rule applies.

Refer to [selector][google.api.DocumentationRule.selector] for syntax details.

oauth: Option<OAuthRequirements>

The requirements for OAuth credentials.

allow_without_credential: bool

If true, the service accepts API keys without any other credential.

requirements: Vec<AuthRequirement>

Requirements for additional authentication providers.

Trait Implementations

impl Clone for AuthenticationRule[src]

impl Debug for AuthenticationRule[src]

impl Default for AuthenticationRule[src]

impl Message for AuthenticationRule[src]

impl PartialEq<AuthenticationRule> for AuthenticationRule[src]

impl StructuralPartialEq for AuthenticationRule[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<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]