[−][src]Struct oauth1_request::serializer::auth::Authorizer
A Serializer
that produces an HTTP Authorization
header string by signing a request
in OAuth 1.0 protocol.
Implementations
impl<'a, SM: SignatureMethod> Authorizer<'a, SM>
[src]
pub fn new<T: Display>(
method: &str,
uri: T,
client: Credentials<&'a str>,
token: Option<Credentials<&'a str>>,
options: &'a Options<'a>
) -> Self where
SM: Default,
[src]
method: &str,
uri: T,
client: Credentials<&'a str>,
token: Option<Credentials<&'a str>>,
options: &'a Options<'a>
) -> Self where
SM: Default,
Creates an Authorizer
.
uri
must not contain a query part.
Otherwise, the serializer will produce a wrong signature.
Panics
In debug builds, panics if uri
contains a '?'
character.
pub fn with_signature_method<T: Display>(
signature_method: SM,
method: &str,
uri: T,
client: Credentials<&'a str>,
token: Option<Credentials<&'a str>>,
options: &'a Options<'a>
) -> Self
[src]
signature_method: SM,
method: &str,
uri: T,
client: Credentials<&'a str>,
token: Option<Credentials<&'a str>>,
options: &'a Options<'a>
) -> Self
Same as new
except that this uses signature_method
as the signature method.
Trait Implementations
impl<'a, SM: Clone + SignatureMethod> Clone for Authorizer<'a, SM> where
SM::Sign: Clone,
[src]
SM::Sign: Clone,
fn clone(&self) -> Authorizer<'a, SM>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'a, SM: Debug + SignatureMethod> Debug for Authorizer<'a, SM> where
SM::Sign: Debug,
[src]
SM::Sign: Debug,
impl<'a, SM: SignatureMethod> Serializer for Authorizer<'a, SM>
[src]
type Output = String
The type of the value produced by this serializer.
fn serialize_parameter<V: Display>(&mut self, k: &str, v: V)
[src]
fn serialize_parameter_encoded<V: Display>(&mut self, k: &str, v: V)
[src]
fn serialize_oauth_callback(&mut self)
[src]
fn serialize_oauth_consumer_key(&mut self)
[src]
fn serialize_oauth_nonce(&mut self)
[src]
fn serialize_oauth_signature_method(&mut self)
[src]
fn serialize_oauth_timestamp(&mut self)
[src]
fn serialize_oauth_token(&mut self)
[src]
fn serialize_oauth_verifier(&mut self)
[src]
fn serialize_oauth_version(&mut self)
[src]
fn end(self) -> String
[src]
Auto Trait Implementations
impl<'a, SM> RefUnwindSafe for Authorizer<'a, SM> where
<SM as SignatureMethod>::Sign: RefUnwindSafe,
<SM as SignatureMethod>::Sign: RefUnwindSafe,
impl<'a, SM> Send for Authorizer<'a, SM> where
<SM as SignatureMethod>::Sign: Send,
<SM as SignatureMethod>::Sign: Send,
impl<'a, SM> Sync for Authorizer<'a, SM> where
<SM as SignatureMethod>::Sign: Sync,
<SM as SignatureMethod>::Sign: Sync,
impl<'a, SM> Unpin for Authorizer<'a, SM> where
<SM as SignatureMethod>::Sign: Unpin,
<SM as SignatureMethod>::Sign: Unpin,
impl<'a, SM> UnwindSafe for Authorizer<'a, SM> where
<SM as SignatureMethod>::Sign: UnwindSafe,
<SM as SignatureMethod>::Sign: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<S> SerializerExt for S where
S: Serializer,
[src]
S: Serializer,
fn serialize_oauth_parameters(&mut Self)
[src]
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, 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<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,