Struct gapi_grpc::google::api::JwtLocation[][src]

pub struct JwtLocation {
    pub value_prefix: String,
    pub in: Option<In>,
}

Specifies a location to extract JWT from an API request.

Fields

value_prefix: String

The value prefix. The value format is “value_prefix{token}” Only applies to “in” header type. Must be empty for “in” query type. If not empty, the header value has to match (case sensitive) this prefix. If not matched, JWT will not be extracted. If matched, JWT will be extracted after the prefix is removed.

For example, for “Authorization: Bearer {JWT}”, value_prefix=“Bearer “ with a space at the end.

in: Option<In>

Trait Implementations

impl Clone for JwtLocation[src]

impl Debug for JwtLocation[src]

impl Default for JwtLocation[src]

impl Message for JwtLocation[src]

impl PartialEq<JwtLocation> for JwtLocation[src]

impl StructuralPartialEq for JwtLocation[src]

Auto Trait Implementations

impl RefUnwindSafe for JwtLocation

impl Send for JwtLocation

impl Sync for JwtLocation

impl Unpin for JwtLocation

impl UnwindSafe for JwtLocation

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> 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>, 
[src]

impl<T> WithSubscriber for T[src]