Struct github_rest::model::organizations::events::OrganizationEvent
source · pub struct OrganizationEvent {
pub action: OrganizationAction,
pub invitation: Option<Value>,
pub membership: Option<Value>,
pub event_info: OrgEventInfo,
}
Expand description
The invitation and membership fields are mutually exclusive.
Fields§
§action: OrganizationAction
§invitation: Option<Value>
§membership: Option<Value>
§event_info: OrgEventInfo
Trait Implementations§
source§impl AsRef<OrgEventInfo> for OrganizationEvent
impl AsRef<OrgEventInfo> for OrganizationEvent
source§fn as_ref(&self) -> &OrgEventInfo
fn as_ref(&self) -> &OrgEventInfo
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for OrganizationEvent
impl Clone for OrganizationEvent
source§fn clone(&self) -> OrganizationEvent
fn clone(&self) -> OrganizationEvent
Returns a copy 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 OrganizationEvent
impl Debug for OrganizationEvent
source§impl Deref for OrganizationEvent
impl Deref for OrganizationEvent
source§impl<'de> Deserialize<'de> for OrganizationEvent
impl<'de> Deserialize<'de> for OrganizationEvent
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 Event<'_> for OrganizationEvent
impl Event<'_> for OrganizationEvent
source§impl PartialEq<OrganizationEvent> for OrganizationEvent
impl PartialEq<OrganizationEvent> for OrganizationEvent
source§fn eq(&self, other: &OrganizationEvent) -> bool
fn eq(&self, other: &OrganizationEvent) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for OrganizationEvent
impl Serialize for OrganizationEvent
impl StructuralPartialEq for OrganizationEvent
Auto Trait Implementations§
impl RefUnwindSafe for OrganizationEvent
impl Send for OrganizationEvent
impl Sync for OrganizationEvent
impl Unpin for OrganizationEvent
impl UnwindSafe for OrganizationEvent
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