pub struct MemberAdded {
pub action: MemberAddedAction,
pub changes: Option<MemberAddedChanges>,
pub installation: Option<InstallationLite>,
pub member: User,
pub organization: Option<Organization>,
pub repository: Repository,
pub sender: User,
}
Expand description
Activity related to repository collaborators. The type of activity is specified in the action property.
JSON schema
{
"title": "member added event",
"description": "Activity related to repository collaborators. The type of activity is specified in the action property.",
"type": "object",
"required": [
"action",
"member",
"repository",
"sender"
],
"properties": {
"action": {
"type": "string",
"enum": [
"added"
]
},
"changes": {
"type": "object",
"properties": {
"permission": {
"type": "object",
"required": [
"to"
],
"properties": {
"to": {
"type": "string",
"enum": [
"write",
"admin"
]
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
"installation": {
"$ref": "#/definitions/installation-lite"
},
"member": {
"description": "The user that was added.",
"$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: MemberAddedAction
§changes: Option<MemberAddedChanges>
§installation: Option<InstallationLite>
§member: User
The user that was added.
organization: Option<Organization>
§repository: Repository
§sender: User
Implementations§
Source§impl MemberAdded
impl MemberAdded
pub fn builder() -> MemberAdded
Trait Implementations§
Source§impl Clone for MemberAdded
impl Clone for MemberAdded
Source§fn clone(&self) -> MemberAdded
fn clone(&self) -> MemberAdded
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 MemberAdded
impl Debug for MemberAdded
Source§impl<'de> Deserialize<'de> for MemberAdded
impl<'de> Deserialize<'de> for MemberAdded
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<&MemberAdded> for MemberAdded
impl From<&MemberAdded> for MemberAdded
Source§fn from(value: &MemberAdded) -> Self
fn from(value: &MemberAdded) -> Self
Converts to this type from the input type.
Source§impl From<MemberAdded> for MemberAdded
impl From<MemberAdded> for MemberAdded
Source§fn from(value: MemberAdded) -> Self
fn from(value: MemberAdded) -> Self
Converts to this type from the input type.
Source§impl From<MemberAdded> for MemberEvent
impl From<MemberAdded> for MemberEvent
Source§fn from(value: MemberAdded) -> Self
fn from(value: MemberAdded) -> Self
Converts to this type from the input type.
Source§impl Serialize for MemberAdded
impl Serialize for MemberAdded
Source§impl TryFrom<MemberAdded> for MemberAdded
impl TryFrom<MemberAdded> for MemberAdded
Auto Trait Implementations§
impl Freeze for MemberAdded
impl RefUnwindSafe for MemberAdded
impl Send for MemberAdded
impl Sync for MemberAdded
impl Unpin for MemberAdded
impl UnwindSafe for MemberAdded
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