pub struct UserGroupMemberRemovedPayload {
pub event_time: TimeStamp,
pub group_member: GroupMember,
}Expand description
USER_GROUP_MEMBER_REMOVEDペイロード
Example
use traq_bot_http::payloads::UserGroupMemberRemovedPayload;
let payload = r#"{
"eventTime": "2023-08-25T04:04:32.962264Z",
"groupMember": {
"groupId": "f265bde2-04cc-4856-9008-3db1d953a539",
"userId": "8e6a088f-9274-42c0-bb20-cee7913d144b"
}
}"#;
let payload: UserGroupMemberRemovedPayload = payload.parse().unwrap();
println!("{payload}");Fields§
§event_time: TimeStamp§group_member: GroupMemberTrait Implementations§
source§impl Clone for UserGroupMemberRemovedPayload
impl Clone for UserGroupMemberRemovedPayload
source§fn clone(&self) -> UserGroupMemberRemovedPayload
fn clone(&self) -> UserGroupMemberRemovedPayload
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<'de> Deserialize<'de> for UserGroupMemberRemovedPayload
impl<'de> Deserialize<'de> for UserGroupMemberRemovedPayload
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<UserGroupAdminRemovedPayload> for UserGroupMemberRemovedPayload
impl From<UserGroupAdminRemovedPayload> for UserGroupMemberRemovedPayload
source§fn from(payload: UserGroupAdminRemovedPayload) -> Self
fn from(payload: UserGroupAdminRemovedPayload) -> Self
Converts to this type from the input type.
source§impl From<UserGroupMemberAddedPayload> for UserGroupMemberRemovedPayload
impl From<UserGroupMemberAddedPayload> for UserGroupMemberRemovedPayload
source§fn from(payload: UserGroupMemberAddedPayload) -> Self
fn from(payload: UserGroupMemberAddedPayload) -> Self
Converts to this type from the input type.
source§impl From<UserGroupMemberRemovedPayload> for Event
impl From<UserGroupMemberRemovedPayload> for Event
source§fn from(event: UserGroupMemberRemovedPayload) -> Self
fn from(event: UserGroupMemberRemovedPayload) -> Self
Converts to this type from the input type.
source§impl From<UserGroupMemberRemovedPayload> for UserGroupAdminRemovedPayload
impl From<UserGroupMemberRemovedPayload> for UserGroupAdminRemovedPayload
source§fn from(payload: UserGroupMemberRemovedPayload) -> Self
fn from(payload: UserGroupMemberRemovedPayload) -> Self
Converts to this type from the input type.
source§impl From<UserGroupMemberRemovedPayload> for UserGroupMemberAddedPayload
impl From<UserGroupMemberRemovedPayload> for UserGroupMemberAddedPayload
source§fn from(payload: UserGroupMemberRemovedPayload) -> Self
fn from(payload: UserGroupMemberRemovedPayload) -> Self
Converts to this type from the input type.
source§impl From<UserGroupMemberRemovedPayload> for UserGroupMemberUpdatedPayload
impl From<UserGroupMemberRemovedPayload> for UserGroupMemberUpdatedPayload
source§fn from(payload: UserGroupMemberRemovedPayload) -> Self
fn from(payload: UserGroupMemberRemovedPayload) -> Self
Converts to this type from the input type.
source§impl From<UserGroupMemberUpdatedPayload> for UserGroupMemberRemovedPayload
impl From<UserGroupMemberUpdatedPayload> for UserGroupMemberRemovedPayload
source§fn from(payload: UserGroupMemberUpdatedPayload) -> Self
fn from(payload: UserGroupMemberUpdatedPayload) -> Self
Converts to this type from the input type.
source§impl PartialEq for UserGroupMemberRemovedPayload
impl PartialEq for UserGroupMemberRemovedPayload
source§fn eq(&self, other: &UserGroupMemberRemovedPayload) -> bool
fn eq(&self, other: &UserGroupMemberRemovedPayload) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for UserGroupMemberRemovedPayload
impl StructuralEq for UserGroupMemberRemovedPayload
impl StructuralPartialEq for UserGroupMemberRemovedPayload
Auto Trait Implementations§
impl RefUnwindSafe for UserGroupMemberRemovedPayload
impl Send for UserGroupMemberRemovedPayload
impl Sync for UserGroupMemberRemovedPayload
impl Unpin for UserGroupMemberRemovedPayload
impl UnwindSafe for UserGroupMemberRemovedPayload
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