Enum Credentials
pub enum Credentials {
RootSeed(RootSeed),
ClientCredentials(ClientCredentials),
}Expand description
Credentials required to connect to a user node via mTLS.
Variants§
RootSeed(RootSeed)
Using a RootSeed. Ex: app.
ClientCredentials(ClientCredentials)
Using a revocable client cert. Ex: SDK sidecar.
Implementations§
§impl Credentials
impl Credentials
pub fn as_ref(&self) -> CredentialsRef<'_>
Trait Implementations§
§impl From<ClientCredentials> for Credentials
impl From<ClientCredentials> for Credentials
§fn from(client_credentials: ClientCredentials) -> Credentials
fn from(client_credentials: ClientCredentials) -> Credentials
Converts to this type from the input type.
§impl From<RootSeed> for Credentials
impl From<RootSeed> for Credentials
§fn from(root_seed: RootSeed) -> Credentials
fn from(root_seed: RootSeed) -> Credentials
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§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§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