Struct github::response::Rate [-] [+] [src]

pub struct Rate {
    pub limit: u32,
    pub remaining: u32,
    pub reset: String,
}

Rate represents the X-Rate-Limit data provided by the Github v3 API and provided for each response

Fields

limit

the maximum limit of requests

remaining

remaining requests possible

reset

the date when this limit resets TODO: replace with proper DateTime

Trait Implementations

impl Populatable for Rate

fn populate(raw_header: &HttpHeaderType) -> Rate

populate a Rate<T> object from the HTTP response header

Derived Implementations

impl Debug for Rate

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