Struct ruma_events::CustomStateEvent
source · pub struct CustomStateEvent {
pub content: Value,
pub event_id: EventId,
pub event_type: EventType,
pub origin_server_ts: u64,
pub prev_content: Option<Value>,
pub room_id: RoomId,
pub state_key: String,
pub unsigned: Option<Value>,
pub sender: UserId,
}
Expand description
A custom state 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.
prev_content: Option<Value>
The previous content for this state key, if any.
room_id: RoomId
The unique identifier for the room associated with this event.
state_key: String
A key that determines which piece of room state the event represents.
unsigned: Option<Value>
Additional key-value pairs not signed by the homeserver.
sender: UserId
The unique identifier for the user associated with this event.
Trait Implementations
sourceimpl Clone for CustomStateEvent
impl Clone for CustomStateEvent
sourcefn clone(&self) -> CustomStateEvent
fn clone(&self) -> CustomStateEvent
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 CustomStateEvent
impl Debug for CustomStateEvent
sourceimpl<'de> Deserialize<'de> for CustomStateEvent
impl<'de> Deserialize<'de> for CustomStateEvent
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 CustomStateEvent
impl Event for CustomStateEvent
sourcefn content(&self) -> &<CustomStateEvent as Event>::Content
fn content(&self) -> &<CustomStateEvent as Event>::Content
The event’s content.
sourcefn event_type(&self) -> &EventType
fn event_type(&self) -> &EventType
The type of the event.
sourceimpl From<CustomStateEvent> for Event
impl From<CustomStateEvent> for Event
sourcefn from(event: CustomStateEvent) -> Self
fn from(event: CustomStateEvent) -> Self
Converts to this type from the input type.
sourceimpl From<CustomStateEvent> for RoomEvent
impl From<CustomStateEvent> for RoomEvent
sourcefn from(event: CustomStateEvent) -> Self
fn from(event: CustomStateEvent) -> Self
Converts to this type from the input type.
sourceimpl From<CustomStateEvent> for StateEvent
impl From<CustomStateEvent> for StateEvent
sourcefn from(event: CustomStateEvent) -> Self
fn from(event: CustomStateEvent) -> Self
Converts to this type from the input type.
sourceimpl RoomEvent for CustomStateEvent
impl RoomEvent for CustomStateEvent
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 CustomStateEvent
impl Serialize for CustomStateEvent
sourceimpl StateEvent for CustomStateEvent
impl StateEvent for CustomStateEvent
Auto Trait Implementations
impl RefUnwindSafe for CustomStateEvent
impl Send for CustomStateEvent
impl Sync for CustomStateEvent
impl Unpin for CustomStateEvent
impl UnwindSafe for CustomStateEvent
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