pub struct CredentialRef(/* private fields */);Expand description
Runtime API credential. The host resolves this from platform keystore
(Android Keystore / iOS Keychain) before calling start_session. The SDK
never logs or persists the value.
§Security
Debug output is redacted so that {:?} in logs and assertion failures
cannot expose bearer keys. If you need to verify a credential is present,
use CredentialRef::is_empty().
Implementations§
Trait Implementations§
Source§impl Clone for CredentialRef
impl Clone for CredentialRef
Source§fn clone(&self) -> CredentialRef
fn clone(&self) -> CredentialRef
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CredentialRef
impl Debug for CredentialRef
impl Eq for CredentialRef
Source§impl PartialEq for CredentialRef
impl PartialEq for CredentialRef
Source§fn eq(&self, other: &CredentialRef) -> bool
fn eq(&self, other: &CredentialRef) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CredentialRef
Auto Trait Implementations§
impl Freeze for CredentialRef
impl RefUnwindSafe for CredentialRef
impl Send for CredentialRef
impl Sync for CredentialRef
impl Unpin for CredentialRef
impl UnsafeUnpin for CredentialRef
impl UnwindSafe for CredentialRef
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