pub struct RepoSummary {
pub clone_url: Option<String>,
pub default_branch: Option<String>,
pub full_name: String,
pub last_synced_at: Option<DateTime<Utc>>,
pub name: String,
pub owner: String,
pub private: bool,
pub registrations: Vec<RepoRegistration>,
}Expand description
A repository visible to the organization, identified by its canonical
clone URL. One logical repository may be registered through several
channels (e.g. the GitHub App and the CLI); each appears in
registrations.
JSON schema
{
"title": "RepoSummary",
"description": "A repository visible to the organization, identified by
its canonical clone URL. One logical repository may be registered
through several channels (e.g. the GitHub App and the CLI); each appears
in `registrations`.",
"type": "object",
"required": [
"full_name",
"name",
"owner",
"private",
"registrations"
],
"properties": {
"clone_url": {
"description": "HTTPS clone URL (may be null for some providers).",
"type": [
"string",
"null"
]
},
"default_branch": {
"description": "Default branch name.",
"type": [
"string",
"null"
]
},
"full_name": {
"description": "`owner/name` full name.",
"type": "string"
},
"last_synced_at": {
"description": "Most recent sync across this repo's
registrations.",
"type": [
"string",
"null"
],
"format": "date-time"
},
"name": {
"description": "Short repo name.",
"type": "string"
},
"owner": {
"description": "Owner/namespace login.",
"type": "string"
},
"private": {
"description": "Whether the repo is private.",
"type": "boolean"
},
"registrations": {
"description": "Every channel through which this repo is
registered.",
"type": "array",
"items": {
"$ref": "#/components/schemas/RepoRegistration"
}
}
}
}Fields§
§clone_url: Option<String>HTTPS clone URL (may be null for some providers).
default_branch: Option<String>Default branch name.
full_name: Stringowner/name full name.
last_synced_at: Option<DateTime<Utc>>Most recent sync across this repo’s registrations.
name: StringShort repo name.
owner: StringOwner/namespace login.
private: boolWhether the repo is private.
registrations: Vec<RepoRegistration>Every channel through which this repo is registered.
Trait Implementations§
Source§impl Clone for RepoSummary
impl Clone for RepoSummary
Source§fn clone(&self) -> RepoSummary
fn clone(&self) -> RepoSummary
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 RepoSummary
impl Debug for RepoSummary
Source§impl<'de> Deserialize<'de> for RepoSummary
impl<'de> Deserialize<'de> for RepoSummary
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 RepoSummary
impl RefUnwindSafe for RepoSummary
impl Send for RepoSummary
impl Sync for RepoSummary
impl Unpin for RepoSummary
impl UnsafeUnpin for RepoSummary
impl UnwindSafe for RepoSummary
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