pub struct Repository { /* private fields */ }
Expand description

Repository on GitHub

Repositories are a core resource on GitHub, and most other resources belong to them. They are uniquely identified by the combination of their owner and name.

Implementations

Returns the repository’s unique id.

Returns the repository’s node id.

Returns the repository’s name.

Returns the account which ows the repository.

Returns the repository’s full name.

Returns the repository’s description.

Returns the URL to the repository’s homepage.

Returns the repository’s primary programming language.

Returns the repository’s license.

Returns the repository’s visibility.

Returns the repository’s default branch.

Returns the repository’s topics.

Returns the repository’s size.

Returns the repository’s stargazers count.

Returns the repository’s watchers count.

Returns the repository’s forks count.

Returns the repository’s open issues count.

Indicates whether the repository is private.

Indicates whether the repository is a fork.

Indicates whether the issues feature is enabled for the repository.

Indicates whether the projects feature is enabled for the repository.

Indicates whether the wiki feature is enabled for the repository.

Indicates whether the repository has a static website.

Indicates whether the repository has been archived.

Indicates whether the repository has been disabled.

Indicates whether the repository can be forked.

Indicates whether the repository can be used as a template.

Indicates whether the signoff is required for commits through GitHub’s web interface.

Returns the URL to the repository.

Returns the API endpoint to query the repository.

Returns the API endpoint to query the repository’s keys.

Returns the API endpoint to query the repository’s collaborators.

Returns the API endpoint to query the repository’s teams.

Returns the API endpoint to query the repository’s hooks.

Returns the API endpoint to query the repository’s issue events.

Returns the API endpoint to query the repository’s events.

Returns the API endpoint to query the repository’s assignees.

Returns the API endpoint to query the repository’s branches.

Returns the API endpoint to query the repository’s tags.

Returns the API endpoint to query the repository’s blobs.

Returns the API endpoint to query the repository’s git tags.

Returns the API endpoint to query the repository’s git refs.

Returns the API endpoint to query the repository’s git trees.

Returns the API endpoint to query the repository’s statuses.

Returns the API endpoint to query the repository’s programming languages.

Returns the API endpoint to query the repository’s stargazers.

Returns the API endpoint to query the repository’s contributors.

Returns the API endpoint to query the repository’s subscribers.

Returns the API endpoint to query the repository’s subscriptions.

Returns the API endpoint to query the repository’s commits.

Returns the API endpoint to query the repository’s git commits.

Returns the API endpoint to query the repository’s comments.

Returns the API endpoint to query the repository’s issue comments.

Returns the API endpoint to query the repository’s contents.

Returns the API endpoint to compare refs in the repository.

Returns the API endpoint to query the repository’s merges.

Returns the API endpoint to retrieve the repository’s archive.

Returns the API endpoint to query the repository’s downloads.

Returns the API endpoint to query the repository’s issues.

Returns the API endpoint to query the repository’s pull requests.

Returns the API endpoint to query the repository’s milestones.

Returns the API endpoint to query the repository’s notifications.

Returns the API endpoint to query the repository’s labels.

Returns the API endpoint to query the repository’s releases.

Returns the API endpoint to query the repository’s deployments.

Returns the Git URL to clone the repository.

Returns the SSH URL to clone the repository.

Returns the HTTP URL to clone the repository.

Returns the SVN URL to clone the repository.

Returns the URL to the repository’s mirror.

Returns the date when the repository was created.

Returns the date when the repository was last updated.

Returns the date when the repository was last pushed.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
Formats the value using the given formatter. Read more
Feeds this value into the given Hasher. Read more
Feeds a slice of this type into the given Hasher. Read more
This method returns an Ordering between self and other. Read more
Compares and returns the maximum of two values. Read more
Compares and returns the minimum of two values. Read more
Restrict a value to a certain interval. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Serialize this value into the given Serde serializer. Read more

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
Compare self to key and return true if they are equal.

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
Converts the given value to a String. Read more
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.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more