Struct roctogen::endpoints::gists::Gists[][src]

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

Implementations


Create a gist

Allows you to add a new gist with one or more files.

Note: Don’t name your files “gistfile” with a numerical suffix. This is the format of the automatic naming scheme that Gist uses internally.

GitHub API docs for create



Create a gist

Allows you to add a new gist with one or more files.

Note: Don’t name your files “gistfile” with a numerical suffix. This is the format of the automatic naming scheme that Gist uses internally.

GitHub API docs for create



Fork a gist

Note: This was previously /gists/:gist_id/fork.

GitHub API docs for fork



Fork a gist

Note: This was previously /gists/:gist_id/fork.

GitHub API docs for fork



List gists for the authenticated user

Lists the authenticated user’s gists or if called anonymously, this endpoint returns all public gists:

GitHub API docs for list



List gists for the authenticated user

Lists the authenticated user’s gists or if called anonymously, this endpoint returns all public gists:

GitHub API docs for list



List gists for a user

Lists public gists for the specified user:

GitHub API docs for list_for_user



List gists for a user

Lists public gists for the specified user:

GitHub API docs for list_for_user



List public gists

List public gists sorted by most recently updated to least recently updated.

Note: With pagination, you can fetch up to 3000 gists. For example, you can fetch 100 pages with 30 gists per page or 30 pages with 100 gists per page.

GitHub API docs for list_public



List public gists

List public gists sorted by most recently updated to least recently updated.

Note: With pagination, you can fetch up to 3000 gists. For example, you can fetch 100 pages with 30 gists per page or 30 pages with 100 gists per page.

GitHub API docs for list_public



List starred gists

List the authenticated user’s starred gists:

GitHub API docs for list_starred



List starred gists

List the authenticated user’s starred gists:

GitHub API docs for list_starred



Star a gist

Note that you’ll need to set Content-Length to zero when calling out to this endpoint. For more information, see “HTTP verbs.”

GitHub API docs for star



Star a gist

Note that you’ll need to set Content-Length to zero when calling out to this endpoint. For more information, see “HTTP verbs.”

GitHub API docs for star



Update a gist

Allows you to update or delete a gist file and rename gist files. Files from the previous version of the gist that aren’t explicitly changed during an edit are unchanged.

GitHub API docs for update



Update a gist

Allows you to update or delete a gist file and rename gist files. Files from the previous version of the gist that aren’t explicitly changed during an edit are unchanged.

GitHub API docs for update


Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.