pub struct CredentialHandle { /* private fields */ }Expand description
Opaque handle to an issued credential. The raw account_id is
intentionally not exposed via Debug / Display — callers that
need to log must use CredentialHandle::fingerprint. This keeps
phone numbers and emails out of transcripts, audit logs, and the
prompt cache.
Implementations§
Source§impl CredentialHandle
impl CredentialHandle
pub fn new(channel: Channel, account_id: &str, agent_id: &str) -> Self
pub fn channel(&self) -> Channel
pub fn agent_id(&self) -> &str
pub fn fingerprint(&self) -> Fingerprint
Sourcepub fn account_id_raw(&self) -> &str
pub fn account_id_raw(&self) -> &str
Raw account id — only call from the owning store when issuing
a network request. Never log this value; prefer Self::fingerprint.
Trait Implementations§
Source§impl Clone for CredentialHandle
impl Clone for CredentialHandle
Source§fn clone(&self) -> CredentialHandle
fn clone(&self) -> CredentialHandle
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 moreAuto Trait Implementations§
impl Freeze for CredentialHandle
impl RefUnwindSafe for CredentialHandle
impl Send for CredentialHandle
impl Sync for CredentialHandle
impl Unpin for CredentialHandle
impl UnsafeUnpin for CredentialHandle
impl UnwindSafe for CredentialHandle
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