pub struct ClientCredentials(/* private fields */);Expand description
Scoped and revocable credentials for controlling a Lexe user node.
These are useful when you want node access without exposing the user’s
RootSeed, which is irrevocable.
Implementations§
Source§impl ClientCredentials
impl ClientCredentials
Sourcepub fn from_string(s: &str) -> Result<Self>
pub fn from_string(s: &str) -> Result<Self>
Parse ClientCredentials from a string.
Sourcepub fn export_string(&self) -> String
pub fn export_string(&self) -> String
Export these credentials as a portable string.
The returned string can be passed to ClientCredentials::from_string
to reconstruct the credentials.
Trait Implementations§
Source§impl Clone for ClientCredentials
impl Clone for ClientCredentials
Source§fn clone(&self) -> ClientCredentials
fn clone(&self) -> ClientCredentials
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 moreSource§impl Debug for ClientCredentials
impl Debug for ClientCredentials
Source§impl<'a> From<&'a ClientCredentials> for CredentialsRef<'a>
impl<'a> From<&'a ClientCredentials> for CredentialsRef<'a>
Source§fn from(cc: &'a ClientCredentials) -> Self
fn from(cc: &'a ClientCredentials) -> Self
Converts to this type from the input type.
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 ClientCredentials
impl RefUnwindSafe for ClientCredentials
impl Send for ClientCredentials
impl Sync for ClientCredentials
impl Unpin for ClientCredentials
impl UnwindSafe for ClientCredentials
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