Struct oauth1_request::Options
source · pub struct Options<'a> { /* private fields */ }
Expand description
Optional OAuth parameters.
Implementations
sourceimpl<'a> Options<'a>
impl<'a> Options<'a>
sourcepub fn callback(&mut self, callback: impl Into<Option<&'a str>>) -> &mut Self
pub fn callback(&mut self, callback: impl Into<Option<&'a str>>) -> &mut Self
Sets oauth_callback
parameter.
sourcepub fn nonce(&mut self, nonce: impl Into<Option<&'a str>>) -> &mut Self
pub fn nonce(&mut self, nonce: impl Into<Option<&'a str>>) -> &mut Self
Sets oauth_nonce
parameter.
sourcepub fn timestamp(&mut self, timestamp: impl Into<Option<u64>>) -> &mut Self
pub fn timestamp(&mut self, timestamp: impl Into<Option<u64>>) -> &mut Self
Sets oauth_timestamp
parameter.
The OAuth standard (RFC 5849 section 3.3.) says that the timestamp value
MUST be a positive integer, so this method treats 0
as None
.
sourcepub fn token(&mut self, token: impl Into<Option<&'a str>>) -> &mut Self
pub fn token(&mut self, token: impl Into<Option<&'a str>>) -> &mut Self
Sets oauth_token
parameter.
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for Options<'a>
impl<'a> Send for Options<'a>
impl<'a> Sync for Options<'a>
impl<'a> Unpin for Options<'a>
impl<'a> UnwindSafe for Options<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more