pub struct Options<'a> { /* private fields */ }
Expand description
Optional OAuth parameters.
Implementations§
Source§impl<'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 verifier(&mut self, verifier: impl Into<Option<&'a str>>) -> &mut Self
pub fn verifier(&mut self, verifier: impl Into<Option<&'a str>>) -> &mut Self
Sets oauth_verifier
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<NonZeroU64>>,
) -> &mut Self
pub fn timestamp( &mut self, timestamp: impl Into<Option<NonZeroU64>>, ) -> &mut Self
Sets oauth_timestamp
parameter.
The OAuth standard (RFC 5849 section 3.3.) says that the timestamp value MUST be a positive integer.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Options<'a>
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§
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