pub struct ApiCredentials { /* private fields */ }Expand description
Re-exported secret string type used by API credentials.
Implementations§
Source§impl ApiCredentials
impl ApiCredentials
pub fn new(api_key: impl Into<String>, secret: impl Into<String>) -> Self
pub fn with_passphrase(self, passphrase: impl Into<String>) -> Self
pub fn api_key(&self) -> &SecretString
pub fn secret(&self) -> &SecretString
pub fn passphrase(&self) -> Option<&SecretString>
Trait Implementations§
Source§impl Debug for ApiCredentials
impl Debug for ApiCredentials
Source§impl PartialEq for ApiCredentials
impl PartialEq for ApiCredentials
impl Eq for ApiCredentials
Auto Trait Implementations§
impl Freeze for ApiCredentials
impl RefUnwindSafe for ApiCredentials
impl Send for ApiCredentials
impl Sync for ApiCredentials
impl Unpin for ApiCredentials
impl UnsafeUnpin for ApiCredentials
impl UnwindSafe for ApiCredentials
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