pub struct Credentials { /* private fields */ }
Implementationsยง
Sourceยงimpl Credentials
impl Credentials
pub fn new(secret_id: impl Into<String>, secret_key: impl Into<String>) -> Self
pub fn with_token(self, token: impl Into<String>) -> Self
pub fn secret_id(&self) -> &str
pub fn secret_key(&self) -> &str
pub fn token(&self) -> Option<&str>
pub fn set_token(&mut self, token: impl Into<String>)
pub fn clear_token(&mut self)
Trait Implementationsยง
Sourceยงimpl Clone for Credentials
impl Clone for Credentials
Sourceยงfn clone(&self) -> Credentials
fn clone(&self) -> Credentials
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 Credentials
impl Debug for Credentials
Sourceยงimpl PartialEq for Credentials
impl PartialEq for Credentials
impl Eq for Credentials
impl StructuralPartialEq for Credentials
Auto Trait Implementationsยง
impl Freeze for Credentials
impl RefUnwindSafe for Credentials
impl Send for Credentials
impl Sync for Credentials
impl Unpin for Credentials
impl UnwindSafe for Credentials
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