Struct automatons_github::resource::Repository
source · [−]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
sourceimpl Repository
impl Repository
sourcepub fn id(&self) -> RepositoryId
pub fn id(&self) -> RepositoryId
Returns the repository’s unique id.
sourcepub fn name(&self) -> &RepositoryName
pub fn name(&self) -> &RepositoryName
Returns the repository’s name.
sourcepub fn full_name(&self) -> &RepositoryFullName
pub fn full_name(&self) -> &RepositoryFullName
Returns the repository’s full name.
sourcepub fn description(&self) -> &String
pub fn description(&self) -> &String
Returns the repository’s description.
sourcepub fn visibility(&self) -> Visibility
pub fn visibility(&self) -> Visibility
Returns the repository’s visibility.
sourcepub fn default_branch(&self) -> &String
pub fn default_branch(&self) -> &String
Returns the repository’s default branch.
sourcepub fn stargazers_count(&self) -> u64
pub fn stargazers_count(&self) -> u64
Returns the repository’s stargazers count.
sourcepub fn watchers_count(&self) -> u64
pub fn watchers_count(&self) -> u64
Returns the repository’s watchers count.
sourcepub fn forks_count(&self) -> u64
pub fn forks_count(&self) -> u64
Returns the repository’s forks count.
sourcepub fn open_issues_count(&self) -> u64
pub fn open_issues_count(&self) -> u64
Returns the repository’s open issues count.
sourcepub fn has_issues(&self) -> bool
pub fn has_issues(&self) -> bool
Indicates whether the issues feature is enabled for the repository.
sourcepub fn has_projects(&self) -> bool
pub fn has_projects(&self) -> bool
Indicates whether the projects feature is enabled for the repository.
sourcepub fn has_wiki(&self) -> bool
pub fn has_wiki(&self) -> bool
Indicates whether the wiki feature is enabled for the repository.
sourcepub fn allow_forking(&self) -> bool
pub fn allow_forking(&self) -> bool
Indicates whether the repository can be forked.
sourcepub fn is_template(&self) -> bool
pub fn is_template(&self) -> bool
Indicates whether the repository can be used as a template.
sourcepub fn web_commit_signoff_required(&self) -> bool
pub fn web_commit_signoff_required(&self) -> bool
Indicates whether the signoff is required for commits through GitHub’s web interface.
sourcepub fn collaborators_url(&self) -> &Url
pub fn collaborators_url(&self) -> &Url
Returns the API endpoint to query the repository’s collaborators.
sourcepub fn issue_events_url(&self) -> &Url
pub fn issue_events_url(&self) -> &Url
Returns the API endpoint to query the repository’s issue events.
sourcepub fn events_url(&self) -> &Url
pub fn events_url(&self) -> &Url
Returns the API endpoint to query the repository’s events.
sourcepub fn assignees_url(&self) -> &Url
pub fn assignees_url(&self) -> &Url
Returns the API endpoint to query the repository’s assignees.
sourcepub fn branches_url(&self) -> &Url
pub fn branches_url(&self) -> &Url
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 git tags.
sourcepub fn git_refs_url(&self) -> &Url
pub fn git_refs_url(&self) -> &Url
Returns the API endpoint to query the repository’s git refs.
sourcepub fn statuses_url(&self) -> &Url
pub fn statuses_url(&self) -> &Url
Returns the API endpoint to query the repository’s statuses.
sourcepub fn languages_url(&self) -> &Url
pub fn languages_url(&self) -> &Url
Returns the API endpoint to query the repository’s programming languages.
sourcepub fn stargazers_url(&self) -> &Url
pub fn stargazers_url(&self) -> &Url
Returns the API endpoint to query the repository’s stargazers.
sourcepub fn contributors_url(&self) -> &Url
pub fn contributors_url(&self) -> &Url
Returns the API endpoint to query the repository’s contributors.
sourcepub fn subscribers_url(&self) -> &Url
pub fn subscribers_url(&self) -> &Url
Returns the API endpoint to query the repository’s subscribers.
sourcepub fn subscription_url(&self) -> &Url
pub fn subscription_url(&self) -> &Url
Returns the API endpoint to query the repository’s subscriptions.
sourcepub fn commits_url(&self) -> &Url
pub fn commits_url(&self) -> &Url
Returns the API endpoint to query the repository’s commits.
sourcepub fn git_commits_url(&self) -> &Url
pub fn git_commits_url(&self) -> &Url
Returns the API endpoint to query the repository’s git commits.
sourcepub fn comments_url(&self) -> &Url
pub fn comments_url(&self) -> &Url
Returns the API endpoint to query the repository’s comments.
sourcepub fn issue_comment_url(&self) -> &Url
pub fn issue_comment_url(&self) -> &Url
Returns the API endpoint to query the repository’s issue comments.
sourcepub fn contents_url(&self) -> &Url
pub fn contents_url(&self) -> &Url
Returns the API endpoint to query the repository’s contents.
sourcepub fn compare_url(&self) -> &Url
pub fn compare_url(&self) -> &Url
Returns the API endpoint to compare refs in the repository.
sourcepub fn merges_url(&self) -> &Url
pub fn merges_url(&self) -> &Url
Returns the API endpoint to query the repository’s merges.
sourcepub fn archive_url(&self) -> &Url
pub fn archive_url(&self) -> &Url
Returns the API endpoint to retrieve the repository’s archive.
sourcepub fn downloads_url(&self) -> &Url
pub fn downloads_url(&self) -> &Url
Returns the API endpoint to query the repository’s downloads.
sourcepub fn issues_url(&self) -> &Url
pub fn issues_url(&self) -> &Url
Returns the API endpoint to query the repository’s issues.
sourcepub fn pulls_url(&self) -> &Url
pub fn pulls_url(&self) -> &Url
Returns the API endpoint to query the repository’s pull requests.
sourcepub fn milestones_url(&self) -> &Url
pub fn milestones_url(&self) -> &Url
Returns the API endpoint to query the repository’s milestones.
sourcepub fn notifications_url(&self) -> &Url
pub fn notifications_url(&self) -> &Url
Returns the API endpoint to query the repository’s notifications.
sourcepub fn labels_url(&self) -> &Url
pub fn labels_url(&self) -> &Url
Returns the API endpoint to query the repository’s labels.
sourcepub fn releases_url(&self) -> &Url
pub fn releases_url(&self) -> &Url
Returns the API endpoint to query the repository’s releases.
sourcepub fn deployments_url(&self) -> &Url
pub fn deployments_url(&self) -> &Url
Returns the API endpoint to query the repository’s deployments.
sourcepub fn mirror_url(&self) -> &Option<Url>
pub fn mirror_url(&self) -> &Option<Url>
Returns the URL to the repository’s mirror.
sourcepub fn created_at(&self) -> &DateTime<Utc>
pub fn created_at(&self) -> &DateTime<Utc>
Returns the date when the repository was created.
sourcepub fn updated_at(&self) -> &DateTime<Utc>
pub fn updated_at(&self) -> &DateTime<Utc>
Returns the date when the repository was last updated.
Trait Implementations
sourceimpl Clone for Repository
impl Clone for Repository
sourcefn clone(&self) -> Repository
fn clone(&self) -> Repository
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresourceimpl Debug for Repository
impl Debug for Repository
sourceimpl<'de> Deserialize<'de> for Repository
impl<'de> Deserialize<'de> for Repository
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
sourceimpl Display for Repository
impl Display for Repository
sourceimpl Hash for Repository
impl Hash for Repository
sourceimpl Ord for Repository
impl Ord for Repository
sourcefn cmp(&self, other: &Repository) -> Ordering
fn cmp(&self, other: &Repository) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
sourceimpl PartialEq<Repository> for Repository
impl PartialEq<Repository> for Repository
sourcefn eq(&self, other: &Repository) -> bool
fn eq(&self, other: &Repository) -> bool
sourceimpl PartialOrd<Repository> for Repository
impl PartialOrd<Repository> for Repository
sourcefn partial_cmp(&self, other: &Repository) -> Option<Ordering>
fn partial_cmp(&self, other: &Repository) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresourceimpl Serialize for Repository
impl Serialize for Repository
impl Eq for Repository
impl StructuralEq for Repository
impl StructuralPartialEq for Repository
Auto Trait Implementations
impl RefUnwindSafe for Repository
impl Send for Repository
impl Sync for Repository
impl Unpin for Repository
impl UnwindSafe for Repository
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.