pub struct MemberEdited {
pub action: MemberEditedAction,
pub changes: MemberEditedChanges,
pub installation: Option<InstallationLite>,
pub member: User,
pub organization: Option<Organization>,
pub repository: Repository,
pub sender: User,
}
Expand description
MemberEdited
JSON schema
{
"title": "member edited event",
"type": "object",
"required": [
"action",
"changes",
"member",
"repository",
"sender"
],
"properties": {
"action": {
"type": "string",
"enum": [
"edited"
]
},
"changes": {
"description": "The changes to the collaborator permissions",
"type": "object",
"required": [
"old_permission"
],
"properties": {
"old_permission": {
"type": "object",
"required": [
"from"
],
"properties": {
"from": {
"description": "The previous permissions of the collaborator if the action was edited.",
"type": "string"
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
"installation": {
"$ref": "#/definitions/installation-lite"
},
"member": {
"description": "The user who's permissions are changed.",
"$ref": "#/definitions/user"
},
"organization": {
"$ref": "#/definitions/organization"
},
"repository": {
"$ref": "#/definitions/repository"
},
"sender": {
"$ref": "#/definitions/user"
}
},
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema"
}
Fields§
§action: MemberEditedAction
§changes: MemberEditedChanges
§installation: Option<InstallationLite>
§member: User
The user who’s permissions are changed.
organization: Option<Organization>
§repository: Repository
§sender: User
Implementations§
Source§impl MemberEdited
impl MemberEdited
pub fn builder() -> MemberEdited
Trait Implementations§
Source§impl Clone for MemberEdited
impl Clone for MemberEdited
Source§fn clone(&self) -> MemberEdited
fn clone(&self) -> MemberEdited
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 MemberEdited
impl Debug for MemberEdited
Source§impl<'de> Deserialize<'de> for MemberEdited
impl<'de> Deserialize<'de> for MemberEdited
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<&MemberEdited> for MemberEdited
impl From<&MemberEdited> for MemberEdited
Source§fn from(value: &MemberEdited) -> Self
fn from(value: &MemberEdited) -> Self
Converts to this type from the input type.
Source§impl From<MemberEdited> for MemberEdited
impl From<MemberEdited> for MemberEdited
Source§fn from(value: MemberEdited) -> Self
fn from(value: MemberEdited) -> Self
Converts to this type from the input type.
Source§impl From<MemberEdited> for MemberEvent
impl From<MemberEdited> for MemberEvent
Source§fn from(value: MemberEdited) -> Self
fn from(value: MemberEdited) -> Self
Converts to this type from the input type.
Source§impl Serialize for MemberEdited
impl Serialize for MemberEdited
Source§impl TryFrom<MemberEdited> for MemberEdited
impl TryFrom<MemberEdited> for MemberEdited
Auto Trait Implementations§
impl Freeze for MemberEdited
impl RefUnwindSafe for MemberEdited
impl Send for MemberEdited
impl Sync for MemberEdited
impl Unpin for MemberEdited
impl UnwindSafe for MemberEdited
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