pub enum Credentials {
RootSeed(RootSeed),
ClientCredentials(ClientCredentials),
}Expand description
Credentials used to authenticate with a Lexe user node.
Variants§
RootSeed(RootSeed)
Authenticate with a RootSeed.
ClientCredentials(ClientCredentials)
Authenticate with delegated ClientCredentials.
Implementations§
Source§impl Credentials
impl Credentials
Sourcepub fn as_ref(&self) -> CredentialsRef<'_>
pub fn as_ref(&self) -> CredentialsRef<'_>
Borrow as a CredentialsRef.
Trait Implementations§
Source§impl Debug for Credentials
impl Debug for Credentials
Source§impl From<ClientCredentials> for Credentials
impl From<ClientCredentials> for Credentials
Source§fn from(cc: ClientCredentials) -> Self
fn from(cc: ClientCredentials) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for Credentials
impl RefUnwindSafe for Credentials
impl Send for Credentials
impl Sync for Credentials
impl Unpin for Credentials
impl UnwindSafe for Credentials
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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