Struct ruma_events::CustomRoomEvent
source · pub struct CustomRoomEvent {
pub content: Value,
pub event_id: EventId,
pub event_type: EventType,
pub origin_server_ts: u64,
pub room_id: RoomId,
pub unsigned: Option<Value>,
pub sender: UserId,
}
Expand description
A custom room event not covered by the Matrix specification.
Fields
content: Value
The event’s content.
event_id: EventId
The unique identifier for the event.
event_type: EventType
The type of the event.
origin_server_ts: u64
Timestamp in milliseconds on originating homeserver when this event was sent.
room_id: RoomId
The unique identifier for the room associated with this event.
unsigned: Option<Value>
Additional key-value pairs not signed by the homeserver.
sender: UserId
The unique identifier for the user who sent this event.
Trait Implementations
sourceimpl Clone for CustomRoomEvent
impl Clone for CustomRoomEvent
sourcefn clone(&self) -> CustomRoomEvent
fn clone(&self) -> CustomRoomEvent
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for CustomRoomEvent
impl Debug for CustomRoomEvent
sourceimpl<'de> Deserialize<'de> for CustomRoomEvent
impl<'de> Deserialize<'de> for CustomRoomEvent
sourcefn 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
sourceimpl Event for CustomRoomEvent
impl Event for CustomRoomEvent
sourcefn content(&self) -> &<CustomRoomEvent as Event>::Content
fn content(&self) -> &<CustomRoomEvent as Event>::Content
The event’s content.
sourcefn event_type(&self) -> &EventType
fn event_type(&self) -> &EventType
The type of the event.
sourceimpl From<CustomRoomEvent> for Event
impl From<CustomRoomEvent> for Event
sourcefn from(event: CustomRoomEvent) -> Self
fn from(event: CustomRoomEvent) -> Self
Converts to this type from the input type.
sourceimpl From<CustomRoomEvent> for RoomEvent
impl From<CustomRoomEvent> for RoomEvent
sourcefn from(event: CustomRoomEvent) -> Self
fn from(event: CustomRoomEvent) -> Self
Converts to this type from the input type.
sourceimpl From<CustomRoomEvent> for RoomEvent
impl From<CustomRoomEvent> for RoomEvent
sourcefn from(event: CustomRoomEvent) -> Self
fn from(event: CustomRoomEvent) -> Self
Converts to this type from the input type.
sourceimpl RoomEvent for CustomRoomEvent
impl RoomEvent for CustomRoomEvent
sourcefn origin_server_ts(&self) -> u64
fn origin_server_ts(&self) -> u64
Timestamp in milliseconds on originating homeserver when this event was sent.
sourceimpl Serialize for CustomRoomEvent
impl Serialize for CustomRoomEvent
Auto Trait Implementations
impl RefUnwindSafe for CustomRoomEvent
impl Send for CustomRoomEvent
impl Sync for CustomRoomEvent
impl Unpin for CustomRoomEvent
impl UnwindSafe for CustomRoomEvent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more