pub enum Credentials {
RootSeed(RootSeed),
ClientCredentials(ClientCredentials),
}Expand description
Credentials used to authenticate with a Lexe user node.
Variants§
RootSeed(RootSeed)
Using a RootSeed. Ex: app.
ClientCredentials(ClientCredentials)
Using a revocable client cert. Ex: SDK sidecar.
Implementations§
Source§impl Credentials
impl Credentials
pub fn as_ref(&self) -> CredentialsRef<'_>
Trait Implementations§
Source§impl From<ClientCredentials> for Credentials
impl From<ClientCredentials> for Credentials
Source§fn from(client_credentials: ClientCredentials) -> Self
fn from(client_credentials: 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 UnsafeUnpin 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