pub enum RepositoryEvent {
Archived(RepositoryArchived),
Created(RepositoryCreated),
Deleted(RepositoryDeleted),
Edited(RepositoryEdited),
Privatized(RepositoryPrivatized),
Publicized(RepositoryPublicized),
Renamed(RepositoryRenamed),
Transferred(RepositoryTransferred),
Unarchived(RepositoryUnarchived),
}
Expand description
RepositoryEvent
JSON schema
{
"oneOf": [
{
"$ref": "#/definitions/repository$archived"
},
{
"$ref": "#/definitions/repository$created"
},
{
"$ref": "#/definitions/repository$deleted"
},
{
"$ref": "#/definitions/repository$edited"
},
{
"$ref": "#/definitions/repository$privatized"
},
{
"$ref": "#/definitions/repository$publicized"
},
{
"$ref": "#/definitions/repository$renamed"
},
{
"$ref": "#/definitions/repository$transferred"
},
{
"$ref": "#/definitions/repository$unarchived"
}
]
}
Variants§
Archived(RepositoryArchived)
Created(RepositoryCreated)
Deleted(RepositoryDeleted)
Edited(RepositoryEdited)
Privatized(RepositoryPrivatized)
Publicized(RepositoryPublicized)
Renamed(RepositoryRenamed)
Transferred(RepositoryTransferred)
Unarchived(RepositoryUnarchived)
Trait Implementations§
Source§impl Clone for RepositoryEvent
impl Clone for RepositoryEvent
Source§fn clone(&self) -> RepositoryEvent
fn clone(&self) -> RepositoryEvent
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 RepositoryEvent
impl Debug for RepositoryEvent
Source§impl<'de> Deserialize<'de> for RepositoryEvent
impl<'de> Deserialize<'de> for RepositoryEvent
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<&RepositoryEvent> for RepositoryEvent
impl From<&RepositoryEvent> for RepositoryEvent
Source§fn from(value: &RepositoryEvent) -> Self
fn from(value: &RepositoryEvent) -> Self
Converts to this type from the input type.
Source§impl From<RepositoryArchived> for RepositoryEvent
impl From<RepositoryArchived> for RepositoryEvent
Source§fn from(value: RepositoryArchived) -> Self
fn from(value: RepositoryArchived) -> Self
Converts to this type from the input type.
Source§impl From<RepositoryCreated> for RepositoryEvent
impl From<RepositoryCreated> for RepositoryEvent
Source§fn from(value: RepositoryCreated) -> Self
fn from(value: RepositoryCreated) -> Self
Converts to this type from the input type.
Source§impl From<RepositoryDeleted> for RepositoryEvent
impl From<RepositoryDeleted> for RepositoryEvent
Source§fn from(value: RepositoryDeleted) -> Self
fn from(value: RepositoryDeleted) -> Self
Converts to this type from the input type.
Source§impl From<RepositoryEdited> for RepositoryEvent
impl From<RepositoryEdited> for RepositoryEvent
Source§fn from(value: RepositoryEdited) -> Self
fn from(value: RepositoryEdited) -> Self
Converts to this type from the input type.
Source§impl From<RepositoryPrivatized> for RepositoryEvent
impl From<RepositoryPrivatized> for RepositoryEvent
Source§fn from(value: RepositoryPrivatized) -> Self
fn from(value: RepositoryPrivatized) -> Self
Converts to this type from the input type.
Source§impl From<RepositoryPublicized> for RepositoryEvent
impl From<RepositoryPublicized> for RepositoryEvent
Source§fn from(value: RepositoryPublicized) -> Self
fn from(value: RepositoryPublicized) -> Self
Converts to this type from the input type.
Source§impl From<RepositoryRenamed> for RepositoryEvent
impl From<RepositoryRenamed> for RepositoryEvent
Source§fn from(value: RepositoryRenamed) -> Self
fn from(value: RepositoryRenamed) -> 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<RepositoryUnarchived> for RepositoryEvent
impl From<RepositoryUnarchived> for RepositoryEvent
Source§fn from(value: RepositoryUnarchived) -> Self
fn from(value: RepositoryUnarchived) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RepositoryEvent
impl RefUnwindSafe for RepositoryEvent
impl Send for RepositoryEvent
impl Sync for RepositoryEvent
impl Unpin for RepositoryEvent
impl UnwindSafe for RepositoryEvent
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