Enum github_rs::github::MediaType [] [src]

pub enum MediaType {
    Json,
    RawJson,
    TextJson,
    HtmlJson,
    FullJson,
    Diff,
    Patch,
    Raw,
    Sha,
    Html,
    Base64,
}

Various Media Types that can be used to access the Github API by default it just uses Json but various endpoints can return data differently based off the Media Type. Care should be used as some methods will fail given parsing to specific types.

Variants

Get JSON back from the API

Get Raw JSON back from the API

Get Text in JSON form back from the API

Get HTML in JSON form back from the API

Get Full in JSON form back from the API

Get Diffs back from the API

Get Patches back from the API

Get Raw data back from the API

Get SHA back from the API

Get HTML back from the API

Get Base64 back from the API

Trait Implementations

impl Debug for MediaType
[src]

Formats the value using the given formatter.

impl Copy for MediaType
[src]

impl Clone for MediaType
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more