[][src]Trait oauth1_request::Request

pub trait Request {
    fn serialize<S>(&self, serializer: S) -> S::Output
    where
        S: Serializer
; }

Types that represent an HTTP request to be authorized with OAuth.

Request is an abstraction of a sequence of key-value pairs of a query part of a URI and x-www-form-urlencoded string.

This trait can be implemented automatically by #[derive(Request)] derive macro. In most cases, you won't need to implement it manually.

Required methods

fn serialize<S>(&self, serializer: S) -> S::Output where
    S: Serializer

Feeds a Serializer implementation with the key-value pair of the request and returns the serializer's output.

Loading content...

Implementations on Foreign Types

impl<'a, R: ?Sized> Request for &'a R where
    R: Request
[src]

impl<'a, R: ?Sized> Request for &'a mut R where
    R: Request
[src]

impl Request for ()[src]

Authorizes a request with no query pairs.

impl<K: Borrow<str>, V: Borrow<str>> Request for BTreeSet<(K, V)>[src]

impl<R: Request> Request for Option<R>[src]

Loading content...

Implementors

Loading content...