pub struct Credentials<S: AsRef<str>> {
pub api_key: S,
pub secret_key: Option<S>,
}
Fields§
§api_key: S
§secret_key: Option<S>
Implementations§
Source§impl<S: AsRef<str>> Credentials<S>
impl<S: AsRef<str>> Credentials<S>
pub fn new(api_key: S) -> Self
pub fn with_secret_key(api_key: S, secret_key: S) -> Self
Trait Implementations§
Auto Trait Implementations§
impl<S> Freeze for Credentials<S>where
S: Freeze,
impl<S> RefUnwindSafe for Credentials<S>where
S: RefUnwindSafe,
impl<S> Send for Credentials<S>where
S: Send,
impl<S> Sync for Credentials<S>where
S: Sync,
impl<S> Unpin for Credentials<S>where
S: Unpin,
impl<S> UnwindSafe for Credentials<S>where
S: UnwindSafe,
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