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
Json
Get JSON back from the API
RawJson
Get Raw JSON back from the API
TextJson
Get Text in JSON form back from the API
HtmlJson
Get HTML in JSON form back from the API
FullJson
Get Full in JSON form back from the API
Diff
Get Diffs back from the API
Patch
Get Patches back from the API
Raw
Get Raw data back from the API
Sha
Get SHA back from the API
Html
Get HTML back from the API
Base64
Get Base64 back from the API
Trait Implementations
impl Debug for MediaType
[src]
impl Copy for MediaType
[src]
impl Clone for MediaType
[src]
fn clone(&self) -> MediaType
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more