Struct octocrab::models::Repository
source · #[non_exhaustive]pub struct Repository {Show 86 fields
pub id: RepositoryId,
pub node_id: Option<String>,
pub name: String,
pub full_name: Option<String>,
pub owner: Option<Author>,
pub private: Option<bool>,
pub html_url: Option<Url>,
pub description: Option<String>,
pub fork: Option<bool>,
pub url: Url,
pub archive_url: Option<Url>,
pub assignees_url: Option<Url>,
pub blobs_url: Option<Url>,
pub branches_url: Option<Url>,
pub collaborators_url: Option<Url>,
pub comments_url: Option<Url>,
pub commits_url: Option<Url>,
pub compare_url: Option<Url>,
pub contents_url: Option<Url>,
pub contributors_url: Option<Url>,
pub deployments_url: Option<Url>,
pub downloads_url: Option<Url>,
pub events_url: Option<Url>,
pub forks_url: Option<Url>,
pub git_commits_url: Option<Url>,
pub git_refs_url: Option<Url>,
pub git_tags_url: Option<Url>,
pub git_url: Option<Url>,
pub issue_comment_url: Option<Url>,
pub issue_events_url: Option<Url>,
pub issues_url: Option<Url>,
pub keys_url: Option<Url>,
pub labels_url: Option<Url>,
pub languages_url: Option<Url>,
pub merges_url: Option<Url>,
pub milestones_url: Option<Url>,
pub notifications_url: Option<Url>,
pub pulls_url: Option<Url>,
pub releases_url: Option<Url>,
pub ssh_url: Option<String>,
pub stargazers_url: Option<Url>,
pub statuses_url: Option<Url>,
pub subscribers_url: Option<Url>,
pub subscription_url: Option<Url>,
pub tags_url: Option<Url>,
pub teams_url: Option<Url>,
pub trees_url: Option<Url>,
pub clone_url: Option<Url>,
pub mirror_url: Option<Url>,
pub hooks_url: Option<Url>,
pub svn_url: Option<Url>,
pub homepage: Option<String>,
pub language: Option<Value>,
pub forks_count: Option<u32>,
pub stargazers_count: Option<u32>,
pub watchers_count: Option<u32>,
pub size: Option<u32>,
pub default_branch: Option<String>,
pub open_issues_count: Option<u32>,
pub is_template: Option<bool>,
pub topics: Option<Vec<String>>,
pub has_issues: Option<bool>,
pub has_projects: Option<bool>,
pub has_wiki: Option<bool>,
pub has_pages: Option<bool>,
pub has_downloads: Option<bool>,
pub archived: Option<bool>,
pub disabled: Option<bool>,
pub visibility: Option<String>,
pub pushed_at: Option<DateTime<Utc>>,
pub created_at: Option<DateTime<Utc>>,
pub updated_at: Option<DateTime<Utc>>,
pub permissions: Option<Permissions>,
pub allow_rebase_merge: Option<bool>,
pub template_repository: Option<Box<Repository>>,
pub allow_squash_merge: Option<bool>,
pub allow_merge_commit: Option<bool>,
pub allow_update_branch: Option<bool>,
pub allow_forking: Option<bool>,
pub subscribers_count: Option<i64>,
pub network_count: Option<i64>,
pub license: Option<License>,
pub allow_auto_merge: Option<bool>,
pub delete_branch_on_merge: Option<bool>,
pub parent: Option<Box<Repository>>,
pub source: Option<Box<Repository>>,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.id: RepositoryId
§node_id: Option<String>
§name: String
§full_name: Option<String>
§owner: Option<Author>
§private: Option<bool>
§html_url: Option<Url>
§description: Option<String>
§fork: Option<bool>
§url: Url
§archive_url: Option<Url>
§assignees_url: Option<Url>
§blobs_url: Option<Url>
§branches_url: Option<Url>
§collaborators_url: Option<Url>
§comments_url: Option<Url>
§commits_url: Option<Url>
§compare_url: Option<Url>
§contents_url: Option<Url>
§contributors_url: Option<Url>
§deployments_url: Option<Url>
§downloads_url: Option<Url>
§events_url: Option<Url>
§forks_url: Option<Url>
§git_commits_url: Option<Url>
§git_refs_url: Option<Url>
§git_url: Option<Url>
§issue_comment_url: Option<Url>
§issue_events_url: Option<Url>
§issues_url: Option<Url>
§keys_url: Option<Url>
§labels_url: Option<Url>
§languages_url: Option<Url>
§merges_url: Option<Url>
§milestones_url: Option<Url>
§notifications_url: Option<Url>
§pulls_url: Option<Url>
§releases_url: Option<Url>
§ssh_url: Option<String>
§stargazers_url: Option<Url>
§statuses_url: Option<Url>
§subscribers_url: Option<Url>
§subscription_url: Option<Url>
§teams_url: Option<Url>
§trees_url: Option<Url>
§clone_url: Option<Url>
§mirror_url: Option<Url>
§hooks_url: Option<Url>
§svn_url: Option<Url>
§homepage: Option<String>
§language: Option<Value>
§forks_count: Option<u32>
§stargazers_count: Option<u32>
§watchers_count: Option<u32>
§size: Option<u32>
§default_branch: Option<String>
§open_issues_count: Option<u32>
§is_template: Option<bool>
§topics: Option<Vec<String>>
§has_issues: Option<bool>
§has_projects: Option<bool>
§has_wiki: Option<bool>
§has_pages: Option<bool>
§has_downloads: Option<bool>
§archived: Option<bool>
§disabled: Option<bool>
§visibility: Option<String>
§pushed_at: Option<DateTime<Utc>>
§created_at: Option<DateTime<Utc>>
§updated_at: Option<DateTime<Utc>>
§permissions: Option<Permissions>
§allow_rebase_merge: Option<bool>
§template_repository: Option<Box<Repository>>
§allow_squash_merge: Option<bool>
§allow_merge_commit: Option<bool>
§allow_update_branch: Option<bool>
§allow_forking: Option<bool>
§subscribers_count: Option<i64>
§network_count: Option<i64>
§license: Option<License>
§allow_auto_merge: Option<bool>
§delete_branch_on_merge: Option<bool>
§parent: Option<Box<Repository>>
§source: Option<Box<Repository>>
Trait Implementations§
source§impl Clone for Repository
impl Clone for Repository
source§fn clone(&self) -> Repository
fn clone(&self) -> Repository
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for Repository
impl Debug for Repository
source§impl<'de> Deserialize<'de> for Repository
impl<'de> Deserialize<'de> for Repository
source§fn 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>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for Repository
impl PartialEq for Repository
source§fn eq(&self, other: &Repository) -> bool
fn eq(&self, other: &Repository) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for Repository
impl Serialize for Repository
impl Eq for Repository
impl StructuralPartialEq for Repository
Auto Trait Implementations§
impl Freeze for Repository
impl RefUnwindSafe for Repository
impl Send for Repository
impl Sync for Repository
impl Unpin for Repository
impl UnwindSafe for Repository
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more