pub struct MembershipActivity {
pub id: String,
pub actor_id: String,
pub person_id: String,
pub room_id: String,
pub action: String,
pub created: String,
pub room_type: Option<String>,
pub raw: MercuryActivity,
}Expand description
A membership activity from Mercury.
Fields§
§id: StringActivity ID.
actor_id: StringID of the person who performed the action.
person_id: StringID of the member affected.
room_id: StringConversation/space ID.
action: StringMembership action: “add”, “leave”, “assignModerator”, or “unassignModerator”.
created: StringISO 8601 timestamp.
room_type: Option<String>“direct”, “group”, or None.
raw: MercuryActivityFull raw activity for advanced use.
Trait Implementations§
Source§impl Clone for MembershipActivity
impl Clone for MembershipActivity
Source§fn clone(&self) -> MembershipActivity
fn clone(&self) -> MembershipActivity
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 moreAuto Trait Implementations§
impl Freeze for MembershipActivity
impl RefUnwindSafe for MembershipActivity
impl Send for MembershipActivity
impl Sync for MembershipActivity
impl Unpin for MembershipActivity
impl UnwindSafe for MembershipActivity
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