pub struct ForkEvent {
pub forkee: ForkEventForkee,
pub installation: Option<InstallationLite>,
pub organization: Option<Organization>,
pub repository: Repository,
pub sender: User,
}
Expand description
A user forks a repository.
JSON schema
{
"title": "fork event",
"description": "A user forks a repository.",
"type": "object",
"required": [
"forkee",
"repository",
"sender"
],
"properties": {
"forkee": {
"description": "The created [`repository`](https://docs.github.com/en/rest/reference/repos#get-a-repository) resource.",
"allOf": [
{
"$ref": "#/definitions/repository"
},
{
"type": "object",
"properties": {
"fork": {
"type": "boolean",
"enum": [
true
]
}
},
"tsAdditionalProperties": false
}
]
},
"installation": {
"$ref": "#/definitions/installation-lite"
},
"organization": {
"$ref": "#/definitions/organization"
},
"repository": {
"$ref": "#/definitions/repository"
},
"sender": {
"$ref": "#/definitions/user"
}
},
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema"
}
Fields§
§forkee: ForkEventForkee
§installation: Option<InstallationLite>
§organization: Option<Organization>
§repository: Repository
§sender: User
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ForkEvent
impl<'de> Deserialize<'de> for ForkEvent
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 ForkEvent
impl RefUnwindSafe for ForkEvent
impl Send for ForkEvent
impl Sync for ForkEvent
impl Unpin for ForkEvent
impl UnwindSafe for ForkEvent
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