pub struct ClientSecret(/* private fields */);Expand description
Represents a client secret credential. This type ensures secure memory management by zeroing memory on drop. Debug printing is safe since the internal representation is hidden.
Implementations§
Source§impl ClientSecret
impl ClientSecret
Sourcepub fn new(client_secret: String) -> Self
pub fn new(client_secret: String) -> Self
Creates a new ClientSecret from a String.
Trait Implementations§
Source§impl Clone for ClientSecret
impl Clone for ClientSecret
Source§fn clone(&self) -> ClientSecret
fn clone(&self) -> ClientSecret
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 ClientSecret
impl Debug for ClientSecret
Auto Trait Implementations§
impl Freeze for ClientSecret
impl RefUnwindSafe for ClientSecret
impl Send for ClientSecret
impl Sync for ClientSecret
impl Unpin for ClientSecret
impl UnwindSafe for ClientSecret
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