Struct oauth1_request::Options [−][src]
pub struct Options<'a> { /* fields omitted */ }
Optional OAuth parameters.
Methods
impl<'a> Options<'a>
[src]
impl<'a> Options<'a>
pub fn new() -> Self
[src]
pub fn new() -> Self
pub fn nonce(
&mut self,
nonce: impl Into<Option<&'a str>>
) -> &mut Self
[src]
pub fn nonce(
&mut self,
nonce: impl Into<Option<&'a str>>
) -> &mut Self
Sets oauth_nonce
parameter.
pub fn timestamp(
&mut self,
timestamp: impl Into<Option<u64>>
) -> &mut Self
[src]
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
.
pub fn token(
&mut self,
token: impl Into<Option<&'a str>>
) -> &mut Self
[src]
pub fn token(
&mut self,
token: impl Into<Option<&'a str>>
) -> &mut Self
Sets oauth_token
parameter.
Trait Implementations
impl<'a> Clone for Options<'a>
[src]
impl<'a> Clone for Options<'a>
fn clone(&self) -> Options<'a>
[src]
fn clone(&self) -> Options<'a>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<'a> Debug for Options<'a>
[src]
impl<'a> Debug for Options<'a>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<'a> Default for Options<'a>
[src]
impl<'a> Default for Options<'a>