pub struct PushedRoomEvent {
pub room: String,
pub sender: String,
pub body: String,
pub event_id: String,
pub wire_type: String,
}Expand description
One room event the homeserver pushed for a single session.
Fields§
§room: StringRoom id.
sender: StringSender mxid.
body: StringAlways empty on push v1 (server never sends plaintext). Kept so
call sites compiling against this struct stay stable; wake uses
/sync + decrypt, not this field.
event_id: StringMatrix event id.
wire_type: Stringm.room.message or m.room.encrypted.
Trait Implementations§
Source§impl Clone for PushedRoomEvent
impl Clone for PushedRoomEvent
Source§fn clone(&self) -> PushedRoomEvent
fn clone(&self) -> PushedRoomEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PushedRoomEvent
impl Debug for PushedRoomEvent
impl Eq for PushedRoomEvent
Source§impl PartialEq for PushedRoomEvent
impl PartialEq for PushedRoomEvent
impl StructuralPartialEq for PushedRoomEvent
Auto Trait Implementations§
impl Freeze for PushedRoomEvent
impl RefUnwindSafe for PushedRoomEvent
impl Send for PushedRoomEvent
impl Sync for PushedRoomEvent
impl Unpin for PushedRoomEvent
impl UnsafeUnpin for PushedRoomEvent
impl UnwindSafe for PushedRoomEvent
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.