pub enum TokenSource {
User(User),
ServiceAccount(ServiceAccount),
Metadata(Metadata),
}Variants§
Implementations§
Trait Implementations§
Source§impl From<Credentials> for TokenSource
impl From<Credentials> for TokenSource
Source§fn from(c: Credentials) -> Self
fn from(c: Credentials) -> Self
Converts to this type from the input type.
Auto 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