pub struct OrgBlockBlocked {
pub action: OrgBlockBlockedAction,
pub blocked_user: User,
pub installation: Option<InstallationLite>,
pub organization: Organization,
pub sender: User,
}
Expand description
OrgBlockBlocked
JSON schema
{
"title": "org_block blocked event",
"type": "object",
"required": [
"action",
"blocked_user",
"organization",
"sender"
],
"properties": {
"action": {
"type": "string",
"enum": [
"blocked"
]
},
"blocked_user": {
"description": "Information about the user that was blocked or unblocked.",
"$ref": "#/definitions/user"
},
"installation": {
"$ref": "#/definitions/installation-lite"
},
"organization": {
"$ref": "#/definitions/organization"
},
"sender": {
"$ref": "#/definitions/user"
}
},
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema"
}
Fields§
§action: OrgBlockBlockedAction
§blocked_user: User
Information about the user that was blocked or unblocked.
installation: Option<InstallationLite>
§organization: Organization
§sender: User
Implementations§
Source§impl OrgBlockBlocked
impl OrgBlockBlocked
pub fn builder() -> OrgBlockBlocked
Trait Implementations§
Source§impl Clone for OrgBlockBlocked
impl Clone for OrgBlockBlocked
Source§fn clone(&self) -> OrgBlockBlocked
fn clone(&self) -> OrgBlockBlocked
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 OrgBlockBlocked
impl Debug for OrgBlockBlocked
Source§impl<'de> Deserialize<'de> for OrgBlockBlocked
impl<'de> Deserialize<'de> for OrgBlockBlocked
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<&OrgBlockBlocked> for OrgBlockBlocked
impl From<&OrgBlockBlocked> for OrgBlockBlocked
Source§fn from(value: &OrgBlockBlocked) -> Self
fn from(value: &OrgBlockBlocked) -> Self
Converts to this type from the input type.
Source§impl From<OrgBlockBlocked> for OrgBlockBlocked
impl From<OrgBlockBlocked> for OrgBlockBlocked
Source§fn from(value: OrgBlockBlocked) -> Self
fn from(value: OrgBlockBlocked) -> Self
Converts to this type from the input type.
Source§impl From<OrgBlockBlocked> for OrgBlockEvent
impl From<OrgBlockBlocked> for OrgBlockEvent
Source§fn from(value: OrgBlockBlocked) -> Self
fn from(value: OrgBlockBlocked) -> Self
Converts to this type from the input type.
Source§impl Serialize for OrgBlockBlocked
impl Serialize for OrgBlockBlocked
Source§impl TryFrom<OrgBlockBlocked> for OrgBlockBlocked
impl TryFrom<OrgBlockBlocked> for OrgBlockBlocked
Auto Trait Implementations§
impl Freeze for OrgBlockBlocked
impl RefUnwindSafe for OrgBlockBlocked
impl Send for OrgBlockBlocked
impl Sync for OrgBlockBlocked
impl Unpin for OrgBlockBlocked
impl UnwindSafe for OrgBlockBlocked
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