pub struct Meta {
pub client: Client,
}
Fields§
§client: Client
Implementations§
source§impl Meta
impl Meta
sourcepub async fn root(&self) -> Result<Response<MetaRootResponse>, ClientError>
pub async fn root(&self) -> Result<Response<MetaRootResponse>, ClientError>
GitHub API Root.
This function performs a GET
to the /
endpoint.
Get Hypermedia links to resources accessible in GitHub’s REST API
FROM: https://docs.github.com/rest/overview/resources-in-the-rest-api#root-endpoint
sourcepub async fn get(&self) -> Result<Response<ApiOverview>, ClientError>
pub async fn get(&self) -> Result<Response<ApiOverview>, ClientError>
Get GitHub meta information.
This function performs a GET
to the /meta
endpoint.
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.
FROM: https://docs.github.com/rest/reference/meta#get-github-meta-information
sourcepub async fn get_octocat(
&self,
s: &str
) -> Result<Response<String>, ClientError>
pub async fn get_octocat( &self, s: &str ) -> Result<Response<String>, ClientError>
Get Octocat.
This function performs a GET
to the /octocat
endpoint.
Get the octocat as ASCII art
FROM: https://docs.github.com/rest/reference/meta#get-octocat
Parameters:
s: &str
– The words to show in Octocat’s speech bubble.