Target

Trait Target 

Source
pub trait Target {
    // Required methods
    fn base_url(&self) -> Cow<'_, str>;
    fn method(&self) -> HTTPMethod;
    fn path(&self) -> String;
    fn query(&self) -> HashMap<String, String>;
    fn headers(&self) -> HashMap<String, String>;
    fn authentication(&self) -> Option<AuthMethod>;
    fn body(&self) -> Result<HTTPBody, Error>;

    // Provided methods
    fn query_string(&self) -> String { ... }
    fn absolute_url(&self) -> String { ... }
}

Required Methods§

Source

fn base_url(&self) -> Cow<'_, str>

Source

fn method(&self) -> HTTPMethod

Source

fn path(&self) -> String

Source

fn query(&self) -> HashMap<String, String>

Source

fn headers(&self) -> HashMap<String, String>

Source

fn authentication(&self) -> Option<AuthMethod>

Specifies the AuthMethod for the request, or None if no authentication.

Source

fn body(&self) -> Result<HTTPBody, Error>

Provided Methods§

Implementors§