pub struct GithubRepo {
pub clone_url: String,
pub default_branch: String,
pub full_name: String,
pub gh_repo_id: i64,
pub id: i64,
pub installation_id: i64,
pub last_synced_at: Option<DateTime<Utc>>,
pub name: String,
pub owner: String,
pub private: bool,
}Expand description
A repository Harmont mirrors from a connected GitHub installation.
installation_id is Harmont’s internal installation row id (FK), not
GitHub’s installation id.
JSON schema
{
"title": "GithubRepo",
"description": "A repository Harmont mirrors from a connected GitHub
installation. `installation_id` is Harmont's internal installation row
id (FK), not GitHub's installation id.",
"type": "object",
"required": [
"clone_url",
"default_branch",
"full_name",
"gh_repo_id",
"id",
"installation_id",
"name",
"owner",
"private"
],
"properties": {
"clone_url": {
"description": "HTTPS clone URL.",
"type": "string"
},
"default_branch": {
"description": "Default branch name.",
"type": "string"
},
"full_name": {
"description": "`owner/name` GitHub full name.",
"type": "string"
},
"gh_repo_id": {
"description": "GitHub's numeric repo id.",
"type": "integer"
},
"id": {
"description": "Harmont's internal repo row id.",
"type": "integer"
},
"installation_id": {
"description": "FK onto the internal installation row id.",
"type": "integer"
},
"last_synced_at": {
"description": "When the repo was last synced from GitHub.",
"type": [
"string",
"null"
],
"format": "date-time"
},
"name": {
"description": "Short repo name.",
"type": "string"
},
"owner": {
"description": "GitHub owner login.",
"type": "string"
},
"private": {
"description": "Whether the repo is private.",
"type": "boolean"
}
}
}Fields§
§clone_url: StringHTTPS clone URL.
default_branch: StringDefault branch name.
full_name: Stringowner/name GitHub full name.
gh_repo_id: i64GitHub’s numeric repo id.
id: i64Harmont’s internal repo row id.
installation_id: i64FK onto the internal installation row id.
last_synced_at: Option<DateTime<Utc>>When the repo was last synced from GitHub.
name: StringShort repo name.
owner: StringGitHub owner login.
private: boolWhether the repo is private.
Trait Implementations§
Source§impl Clone for GithubRepo
impl Clone for GithubRepo
Source§fn clone(&self) -> GithubRepo
fn clone(&self) -> GithubRepo
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 GithubRepo
impl Debug for GithubRepo
Source§impl<'de> Deserialize<'de> for GithubRepo
impl<'de> Deserialize<'de> for GithubRepo
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<GithubRepo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<GithubRepo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for GithubRepo
impl Serialize for GithubRepo
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for GithubRepo
impl RefUnwindSafe for GithubRepo
impl Send for GithubRepo
impl Sync for GithubRepo
impl Unpin for GithubRepo
impl UnsafeUnpin for GithubRepo
impl UnwindSafe for GithubRepo
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