pub struct ConsumerKey {
pub key: String,
pub secret: String,
}Fields§
§key: String§secret: StringImplementations§
Source§impl ConsumerKey
impl ConsumerKey
pub fn new(key: impl AsRef<str>, secret: impl AsRef<str>) -> Self
pub fn secrets(&self) -> Secrets<'_>
pub fn secrets_with_request_token( &self, authentication_request_token: &AuthenticationRequestToken, ) -> Secrets<'_>
pub fn secrets_with_access_token( &self, authentication_access_token: &AuthenticationAccessToken, ) -> Secrets<'_>
Trait Implementations§
Source§impl Clone for ConsumerKey
impl Clone for ConsumerKey
Source§fn clone(&self) -> ConsumerKey
fn clone(&self) -> ConsumerKey
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 moreAuto Trait Implementations§
impl Freeze for ConsumerKey
impl RefUnwindSafe for ConsumerKey
impl Send for ConsumerKey
impl Sync for ConsumerKey
impl Unpin for ConsumerKey
impl UnwindSafe for ConsumerKey
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