pub struct RepoDetails {Show 17 fields
pub id: i64,
pub name: String,
pub full_name: String,
pub human_name: String,
pub description: Option<String>,
pub html_url: String,
pub ssh_url: Option<String>,
pub clone_url: Option<String>,
pub default_branch: Option<String>,
pub private: Option<bool>,
pub stargazers_count: Option<i64>,
pub starred: Option<bool>,
pub watching: Option<bool>,
pub fork_count: Option<i64>,
pub open_issues_count: Option<i64>,
pub owner: Option<UserBasic>,
pub parent: Option<Box<RepoDetails>>,
}Fields§
§id: i64§name: String§full_name: String§human_name: String§description: Option<String>§html_url: String§ssh_url: Option<String>§clone_url: Option<String>§default_branch: Option<String>§private: Option<bool>§stargazers_count: Option<i64>§starred: Option<bool>Set by repo view via GET /user/starred/… (not from repo payload).
watching: Option<bool>Set by repo view via GET /user/subscriptions/… (not from repo payload).
fork_count: Option<i64>§open_issues_count: Option<i64>§owner: Option<UserBasic>§parent: Option<Box<RepoDetails>>Implementations§
Source§impl RepoDetails
impl RepoDetails
Sourcepub fn preferred_url(&self, ssh: bool) -> String
pub fn preferred_url(&self, ssh: bool) -> String
Clone URL policy: SSH when ssh is set, HTTPS otherwise; falls back to
the web URL when the preferred URL is missing.
Trait Implementations§
Source§impl Clone for RepoDetails
impl Clone for RepoDetails
Source§fn clone(&self) -> RepoDetails
fn clone(&self) -> RepoDetails
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RepoDetails
impl Debug for RepoDetails
Source§impl Default for RepoDetails
impl Default for RepoDetails
Source§fn default() -> RepoDetails
fn default() -> RepoDetails
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RepoDetails
impl<'de> Deserialize<'de> for RepoDetails
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 RepoDetails
impl RefUnwindSafe for RepoDetails
impl Send for RepoDetails
impl Sync for RepoDetails
impl Unpin for RepoDetails
impl UnsafeUnpin for RepoDetails
impl UnwindSafe for RepoDetails
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