pub struct Repository {Show 25 fields
pub node_id: String,
pub database_id: Option<u64>,
pub name: String,
pub name_with_owner: String,
pub description: Option<String>,
pub url: String,
pub homepage_url: Option<String>,
pub created_at: String,
pub updated_at: String,
pub pushed_at: Option<String>,
pub is_private: bool,
pub is_fork: bool,
pub is_archived: bool,
pub stargazer_count: u32,
pub fork_count: u32,
pub watcher_count: Option<u32>,
pub open_issue_count: Option<u32>,
pub pull_request_count: Option<u32>,
pub release_count: Option<u32>,
pub primary_language: Option<Language>,
pub languages: Option<Vec<LanguageUsage>>,
pub languages_complete: bool,
pub license_info: Option<License>,
pub default_branch: Option<String>,
pub topics: Vec<String>,
}Expand description
Repository metadata. Optional counts are unknown when an API cannot supply them.
Fields§
§node_id: String§database_id: Option<u64>§name: String§name_with_owner: String§description: Option<String>§url: String§homepage_url: Option<String>§created_at: StringCreation timestamp supplied by GitHub, in ISO 8601 format.
updated_at: StringLast metadata update timestamp, in ISO 8601 format.
pushed_at: Option<String>Last push timestamp in ISO 8601 format, when available.
is_private: bool§is_fork: bool§is_archived: bool§stargazer_count: u32§fork_count: u32§watcher_count: Option<u32>Users subscribed to notifications, not users who starred the repository.
open_issue_count: Option<u32>Open issues, excluding pull requests. Unavailable from the REST repository response.
pull_request_count: Option<u32>Pull requests in all states. Unavailable from the REST repository response.
release_count: Option<u32>Unavailable from the REST repository response.
primary_language: Option<Language>§languages: Option<Vec<LanguageUsage>>None if the optional language breakdown could not be retrieved.
languages_complete: boolFalse when languages are unavailable or the GraphQL connection has more pages.
license_info: Option<License>§default_branch: Option<String>§topics: Vec<String>Implementations§
Source§impl Repository
impl Repository
Source§impl Repository
impl Repository
pub fn default_branch(&self) -> Option<&str>
pub fn open_issues(&self) -> Option<u32>
pub fn watcher_count(&self) -> Option<u32>
Trait Implementations§
Source§impl Clone for Repository
impl Clone for Repository
Source§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
Auto Trait Implementations§
impl Freeze for Repository
impl RefUnwindSafe for Repository
impl Send for Repository
impl Sync for Repository
impl Unpin for Repository
impl UnsafeUnpin 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