Struct roctogen::endpoints::meta::Meta[][src]

pub struct Meta<'api> { /* fields omitted */ }

Implementations

impl<'api> Meta<'api>[src]

pub async fn get_async(&self) -> Result<ApiOverview, MetaGetError>[src]


Get GitHub meta information

Returns meta information about GitHub, including a list of GitHub’s IP addresses. For more information, see “About GitHub’s IP addresses.”

Note: The IP addresses shown in the documentation’s response are only example values. You must always query the API directly to get the latest list of IP addresses.

GitHub API docs for get


pub fn get(&self) -> Result<ApiOverview, MetaGetError>[src]


Get GitHub meta information

Returns meta information about GitHub, including a list of GitHub’s IP addresses. For more information, see “About GitHub’s IP addresses.”

Note: The IP addresses shown in the documentation’s response are only example values. You must always query the API directly to get the latest list of IP addresses.

GitHub API docs for get


pub async fn get_octocat_async(
    &self,
    query_params: Option<impl Into<MetaGetOctocatParams<'api>>>
) -> Result<String, MetaGetOctocatError>
[src]


Get Octocat

Get the octocat as ASCII art

GitHub API docs for get_octocat


pub fn get_octocat(
    &self,
    query_params: Option<impl Into<MetaGetOctocatParams<'api>>>
) -> Result<String, MetaGetOctocatError>
[src]


Get Octocat

Get the octocat as ASCII art

GitHub API docs for get_octocat


pub async fn get_zen_async(&self) -> Result<String, MetaGetZenError>[src]


Get the Zen of GitHub

Get a random sentence from the Zen of GitHub


pub fn get_zen(&self) -> Result<String, MetaGetZenError>[src]


Get the Zen of GitHub

Get a random sentence from the Zen of GitHub


pub async fn root_async(&self) -> Result<GetMetaRootResponse200, MetaRootError>[src]


GitHub API Root

Get Hypermedia links to resources accessible in GitHub’s REST API

GitHub API docs for root


pub fn root(&self) -> Result<GetMetaRootResponse200, MetaRootError>[src]


GitHub API Root

Get Hypermedia links to resources accessible in GitHub’s REST API

GitHub API docs for root


Auto Trait Implementations

impl<'api> RefUnwindSafe for Meta<'api>

impl<'api> Send for Meta<'api>

impl<'api> Sync for Meta<'api>

impl<'api> Unpin for Meta<'api>

impl<'api> UnwindSafe for Meta<'api>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.