pub struct SearchRepository {Show 13 fields
pub id: String,
pub name: String,
pub name_with_owner: String,
pub description: Option<String>,
pub url: String,
pub stargazer_count: u32,
pub fork_count: u32,
pub created_at: String,
pub updated_at: String,
pub pushed_at: Option<String>,
pub primary_language: Option<Language>,
pub license_info: Option<License>,
pub repository_topics: TopicConnection,
}Expand description
Repository data from GitHub search API.
A lighter-weight repository struct returned by search operations, containing the most commonly needed fields.
Fields§
§id: StringGitHub’s internal ID for the repository
name: StringRepository name (without owner)
name_with_owner: StringFull repository name in “owner/repo” format
description: Option<String>Repository description
url: StringGitHub URL for the repository
stargazer_count: u32Number of stars
fork_count: u32Number of forks
created_at: StringISO 8601 timestamp when repository was created
updated_at: StringISO 8601 timestamp of last update
pushed_at: Option<String>ISO 8601 timestamp of last push
primary_language: Option<Language>Primary programming language
license_info: Option<License>License information
repository_topics: TopicConnectionRepository topics/tags
Implementations§
Source§impl SearchRepository
impl SearchRepository
Sourcepub fn license_spdx(&self) -> Option<&str>
pub fn license_spdx(&self) -> Option<&str>
Returns the SPDX license identifier, or None if not available.
Trait Implementations§
Source§impl Clone for SearchRepository
impl Clone for SearchRepository
Source§fn clone(&self) -> SearchRepository
fn clone(&self) -> SearchRepository
Returns a duplicate 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 SearchRepository
impl Debug for SearchRepository
Source§impl Default for SearchRepository
impl Default for SearchRepository
Source§fn default() -> SearchRepository
fn default() -> SearchRepository
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SearchRepository
impl<'de> Deserialize<'de> for SearchRepository
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 SearchRepository
impl RefUnwindSafe for SearchRepository
impl Send for SearchRepository
impl Sync for SearchRepository
impl Unpin for SearchRepository
impl UnwindSafe for SearchRepository
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