[−][src]Struct oauth1_request::Options
Optional OAuth parameters.
Methods
impl<'a> Options<'a>
[src]
pub fn new() -> Self
[src]
Creates a blank Options
with default values (None
).
pub fn callback(&mut self, callback: impl Into<Option<&'a str>>) -> &mut Self
[src]
Sets oauth_callback
parameter.
pub fn nonce(&mut self, nonce: impl Into<Option<&'a str>>) -> &mut Self
[src]
Sets oauth_nonce
parameter.
pub fn timestamp(&mut self, timestamp: impl Into<Option<u64>>) -> &mut Self
[src]
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
.
pub fn token(&mut self, token: impl Into<Option<&'a str>>) -> &mut Self
[src]
Sets oauth_token
parameter.
pub fn verifier(&mut self, verifier: impl Into<Option<&'a str>>) -> &mut Self
[src]
Sets oauth_verifier
parameter.
pub fn version(&mut self, version: bool) -> &mut Self
[src]
Sets whether to include oauth_version="1.0"
parameter in the Authorization
header.
Trait Implementations
impl<'a> Default for Options<'a>
[src]
impl<'a> Clone for Options<'a>
[src]
impl<'a> Debug for Options<'a>
[src]
Auto Trait Implementations
impl<'a> Sync for Options<'a>
impl<'a> Send for Options<'a>
impl<'a> Unpin for Options<'a>
impl<'a> UnwindSafe for Options<'a>
impl<'a> RefUnwindSafe for Options<'a>
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
fn vzip(self) -> V
impl<T> Same<T> for T
type Output = T
Should always be Self