Struct doapi::response::HeaderOnly [] [src]

pub struct HeaderOnly {
    pub content_type: String,
    pub status: String,
    pub ratelimit_limit: f64,
    pub ratelimit_remaining: f64,
    pub ratelimit_reset: f64,
}

Fields

content_type
status
ratelimit_limit
ratelimit_remaining
ratelimit_reset

Methods

impl HeaderOnly

fn from_response(r: Response) -> Result<HeaderOnly, String>

Trait Implementations

impl NotArray for HeaderOnly

impl NamedResponse for HeaderOnly

fn name<'a>() -> Cow<'a, str>

impl Display for HeaderOnly

fn fmt(&self, f: &mut Formatter) -> Result

impl Debug for HeaderOnly

fn fmt(&self, f: &mut Formatter) -> Result

Derived Implementations

impl Deserialize for HeaderOnly

fn deserialize<__D>(deserializer: &mut __D) -> Result<HeaderOnly, __D::Error> where __D: Deserializer