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