pub enum TokenSource {
Jwt {
jwt: Box<JwtService>,
},
JWT(JWTConfig),
}
Expand description
Token generation source types
Variants§
Jwt
👎Deprecated: use
TokenSource::JWT
(all-caps) insteadJSON Web Token authentication flow
JWT(JWTConfig)
JSON Web Token authentication flow
Implementations§
Source§impl TokenSource
impl TokenSource
Sourcepub async fn from_service_account<P: AsRef<Path>>(
path: P,
) -> Result<Self, Error>
👎Deprecated: use TokenSource::service
instead
pub async fn from_service_account<P: AsRef<Path>>( path: P, ) -> Result<Self, Error>
TokenSource::service
insteadCreates service account authentication from JSON file
Sourcepub async fn service<P: AsRef<Path>>(path: P) -> Result<Self, Error>
pub async fn service<P: AsRef<Path>>(path: P) -> Result<Self, Error>
Creates service account authentication from JSON file
Trait Implementations§
Source§impl Clone for TokenSource
impl Clone for TokenSource
Source§fn clone(&self) -> TokenSource
fn clone(&self) -> TokenSource
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for TokenSource
impl !RefUnwindSafe for TokenSource
impl Send for TokenSource
impl Sync for TokenSource
impl Unpin for TokenSource
impl !UnwindSafe for TokenSource
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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>
Wrap the input message
T
in a tonic_veecore::Request