pub struct RepositoryArchived {
pub action: RepositoryArchivedAction,
pub installation: Option<InstallationLite>,
pub organization: Option<Organization>,
pub repository: RepositoryArchivedRepository,
pub sender: User,
}
Expand description
RepositoryArchived
JSON schema
{
"title": "repository archived event",
"type": "object",
"required": [
"action",
"repository",
"sender"
],
"properties": {
"action": {
"type": "string",
"enum": [
"archived"
]
},
"installation": {
"$ref": "#/definitions/installation-lite"
},
"organization": {
"$ref": "#/definitions/organization"
},
"repository": {
"allOf": [
{
"$ref": "#/definitions/repository"
},
{
"type": "object",
"required": [
"archived"
],
"properties": {
"archived": {
"description": "Whether the repository is archived.",
"default": false,
"type": "boolean",
"enum": [
true
]
}
},
"tsAdditionalProperties": false
}
]
},
"sender": {
"$ref": "#/definitions/user"
}
},
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema"
}
Fields§
§action: RepositoryArchivedAction
§installation: Option<InstallationLite>
§organization: Option<Organization>
§repository: RepositoryArchivedRepository
§sender: User
Implementations§
Source§impl RepositoryArchived
impl RepositoryArchived
pub fn builder() -> RepositoryArchived
Trait Implementations§
Source§impl Clone for RepositoryArchived
impl Clone for RepositoryArchived
Source§fn clone(&self) -> RepositoryArchived
fn clone(&self) -> RepositoryArchived
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 RepositoryArchived
impl Debug for RepositoryArchived
Source§impl<'de> Deserialize<'de> for RepositoryArchived
impl<'de> Deserialize<'de> for RepositoryArchived
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<&RepositoryArchived> for RepositoryArchived
impl From<&RepositoryArchived> for RepositoryArchived
Source§fn from(value: &RepositoryArchived) -> Self
fn from(value: &RepositoryArchived) -> Self
Converts to this type from the input type.
Source§impl From<RepositoryArchived> for RepositoryArchived
impl From<RepositoryArchived> for RepositoryArchived
Source§fn from(value: RepositoryArchived) -> Self
fn from(value: RepositoryArchived) -> 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 Serialize for RepositoryArchived
impl Serialize for RepositoryArchived
Auto Trait Implementations§
impl Freeze for RepositoryArchived
impl RefUnwindSafe for RepositoryArchived
impl Send for RepositoryArchived
impl Sync for RepositoryArchived
impl Unpin for RepositoryArchived
impl UnwindSafe for RepositoryArchived
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