pub struct TeamEdited {
pub action: TeamEditedAction,
pub changes: TeamEditedChanges,
pub installation: Option<InstallationLite>,
pub organization: Organization,
pub repository: Option<Repository>,
pub sender: User,
pub team: Team,
}
Expand description
TeamEdited
JSON schema
{
"title": "team edited event",
"type": "object",
"required": [
"action",
"changes",
"organization",
"sender",
"team"
],
"properties": {
"action": {
"type": "string",
"enum": [
"edited"
]
},
"changes": {
"description": "The changes to the team if the action was `edited`.",
"type": "object",
"properties": {
"description": {
"type": "object",
"required": [
"from"
],
"properties": {
"from": {
"description": "The previous version of the description if the action was `edited`.",
"type": "string"
}
},
"additionalProperties": false
},
"name": {
"type": "object",
"required": [
"from"
],
"properties": {
"from": {
"description": "The previous version of the name if the action was `edited`.",
"type": "string"
}
},
"additionalProperties": false
},
"privacy": {
"type": "object",
"required": [
"from"
],
"properties": {
"from": {
"description": "The previous version of the team's privacy if the action was `edited`.",
"type": "string"
}
},
"additionalProperties": false
},
"repository": {
"type": "object",
"required": [
"permissions"
],
"properties": {
"permissions": {
"type": "object",
"required": [
"from"
],
"properties": {
"from": {
"type": "object",
"properties": {
"admin": {
"description": "The previous version of the team member's `admin` permission on a repository, if the action was `edited`.",
"type": "boolean"
},
"pull": {
"description": "The previous version of the team member's `pull` permission on a repository, if the action was `edited`.",
"type": "boolean"
},
"push": {
"description": "The previous version of the team member's `push` permission on a repository, if the action was `edited`.",
"type": "boolean"
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
"installation": {
"$ref": "#/definitions/installation-lite"
},
"organization": {
"$ref": "#/definitions/organization"
},
"repository": {
"$ref": "#/definitions/repository"
},
"sender": {
"$ref": "#/definitions/user"
},
"team": {
"$ref": "#/definitions/team"
}
},
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema"
}
Fields§
§action: TeamEditedAction
§changes: TeamEditedChanges
§installation: Option<InstallationLite>
§organization: Organization
§repository: Option<Repository>
§sender: User
§team: Team
Implementations§
Source§impl TeamEdited
impl TeamEdited
pub fn builder() -> TeamEdited
Trait Implementations§
Source§impl Clone for TeamEdited
impl Clone for TeamEdited
Source§fn clone(&self) -> TeamEdited
fn clone(&self) -> TeamEdited
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 TeamEdited
impl Debug for TeamEdited
Source§impl<'de> Deserialize<'de> for TeamEdited
impl<'de> Deserialize<'de> for TeamEdited
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<&TeamEdited> for TeamEdited
impl From<&TeamEdited> for TeamEdited
Source§fn from(value: &TeamEdited) -> Self
fn from(value: &TeamEdited) -> Self
Converts to this type from the input type.
Source§impl From<TeamEdited> for TeamEdited
impl From<TeamEdited> for TeamEdited
Source§fn from(value: TeamEdited) -> Self
fn from(value: TeamEdited) -> Self
Converts to this type from the input type.
Source§impl From<TeamEdited> for TeamEvent
impl From<TeamEdited> for TeamEvent
Source§fn from(value: TeamEdited) -> Self
fn from(value: TeamEdited) -> Self
Converts to this type from the input type.
Source§impl Serialize for TeamEdited
impl Serialize for TeamEdited
Source§impl TryFrom<TeamEdited> for TeamEdited
impl TryFrom<TeamEdited> for TeamEdited
Auto Trait Implementations§
impl Freeze for TeamEdited
impl RefUnwindSafe for TeamEdited
impl Send for TeamEdited
impl Sync for TeamEdited
impl Unpin for TeamEdited
impl UnwindSafe for TeamEdited
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