pub struct RepositoryTransferred {
pub action: RepositoryTransferredAction,
pub changes: RepositoryTransferredChanges,
pub installation: Option<InstallationLite>,
pub organization: Option<Organization>,
pub repository: Repository,
pub sender: User,
}
Expand description
RepositoryTransferred
JSON schema
{
"title": "repository transferred event",
"type": "object",
"required": [
"action",
"changes",
"repository",
"sender"
],
"properties": {
"action": {
"type": "string",
"enum": [
"transferred"
]
},
"changes": {
"type": "object",
"required": [
"owner"
],
"properties": {
"owner": {
"type": "object",
"required": [
"from"
],
"properties": {
"from": {
"type": "object",
"properties": {
"user": {
"$ref": "#/definitions/user"
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
},
"additionalProperties": 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§
§action: RepositoryTransferredAction
§changes: RepositoryTransferredChanges
§installation: Option<InstallationLite>
§organization: Option<Organization>
§repository: Repository
§sender: User
Implementations§
Source§impl RepositoryTransferred
impl RepositoryTransferred
pub fn builder() -> RepositoryTransferred
Trait Implementations§
Source§impl Clone for RepositoryTransferred
impl Clone for RepositoryTransferred
Source§fn clone(&self) -> RepositoryTransferred
fn clone(&self) -> RepositoryTransferred
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 RepositoryTransferred
impl Debug for RepositoryTransferred
Source§impl<'de> Deserialize<'de> for RepositoryTransferred
impl<'de> Deserialize<'de> for RepositoryTransferred
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
Source§impl From<&RepositoryTransferred> for RepositoryTransferred
impl From<&RepositoryTransferred> for RepositoryTransferred
Source§fn from(value: &RepositoryTransferred) -> Self
fn from(value: &RepositoryTransferred) -> Self
Converts to this type from the input type.
Source§impl From<RepositoryTransferred> for RepositoryEvent
impl From<RepositoryTransferred> for RepositoryEvent
Source§fn from(value: RepositoryTransferred) -> Self
fn from(value: RepositoryTransferred) -> Self
Converts to this type from the input type.
Source§impl From<RepositoryTransferred> for RepositoryTransferred
impl From<RepositoryTransferred> for RepositoryTransferred
Source§fn from(value: RepositoryTransferred) -> Self
fn from(value: RepositoryTransferred) -> Self
Converts to this type from the input type.
Source§impl Serialize for RepositoryTransferred
impl Serialize for RepositoryTransferred
Auto Trait Implementations§
impl Freeze for RepositoryTransferred
impl RefUnwindSafe for RepositoryTransferred
impl Send for RepositoryTransferred
impl Sync for RepositoryTransferred
impl Unpin for RepositoryTransferred
impl UnwindSafe for RepositoryTransferred
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