Struct ruma::events::EphemeralRoomEvent
source · pub struct EphemeralRoomEvent<C>where
C: EphemeralRoomEventContent,{
pub content: C,
pub room_id: OwnedRoomId,
}
Expand description
An ephemeral room event.
Fields§
§content: C
Data specific to the event type.
room_id: OwnedRoomId
The ID of the room associated with this event.
Trait Implementations§
source§impl<C> Clone for EphemeralRoomEvent<C>where
C: Clone + EphemeralRoomEventContent,
impl<C> Clone for EphemeralRoomEvent<C>where
C: Clone + EphemeralRoomEventContent,
source§fn clone(&self) -> EphemeralRoomEvent<C>
fn clone(&self) -> EphemeralRoomEvent<C>
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<C> Debug for EphemeralRoomEvent<C>where
C: Debug + EphemeralRoomEventContent,
impl<C> Debug for EphemeralRoomEvent<C>where
C: Debug + EphemeralRoomEventContent,
source§impl<'de, C> Deserialize<'de> for EphemeralRoomEvent<C>where
C: EphemeralRoomEventContent + EventContentFromType,
impl<'de, C> Deserialize<'de> for EphemeralRoomEvent<C>where
C: EphemeralRoomEventContent + EventContentFromType,
source§fn deserialize<D>(
deserializer: D,
) -> Result<EphemeralRoomEvent<C>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<EphemeralRoomEvent<C>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<EphemeralRoomEvent<ReceiptEventContent>> for AnyEphemeralRoomEvent
impl From<EphemeralRoomEvent<ReceiptEventContent>> for AnyEphemeralRoomEvent
source§fn from(c: EphemeralRoomEvent<ReceiptEventContent>) -> AnyEphemeralRoomEvent
fn from(c: EphemeralRoomEvent<ReceiptEventContent>) -> AnyEphemeralRoomEvent
Converts to this type from the input type.
source§impl From<EphemeralRoomEvent<TypingEventContent>> for AnyEphemeralRoomEvent
impl From<EphemeralRoomEvent<TypingEventContent>> for AnyEphemeralRoomEvent
source§fn from(c: EphemeralRoomEvent<TypingEventContent>) -> AnyEphemeralRoomEvent
fn from(c: EphemeralRoomEvent<TypingEventContent>) -> AnyEphemeralRoomEvent
Converts to this type from the input type.
source§impl<C> Serialize for EphemeralRoomEvent<C>where
C: EphemeralRoomEventContent,
impl<C> Serialize for EphemeralRoomEvent<C>where
C: EphemeralRoomEventContent,
source§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl<C> Freeze for EphemeralRoomEvent<C>where
C: Freeze,
impl<C> RefUnwindSafe for EphemeralRoomEvent<C>where
C: RefUnwindSafe,
impl<C> Send for EphemeralRoomEvent<C>where
C: Send,
impl<C> Sync for EphemeralRoomEvent<C>where
C: Sync,
impl<C> Unpin for EphemeralRoomEvent<C>where
C: Unpin,
impl<C> UnwindSafe for EphemeralRoomEvent<C>where
C: UnwindSafe,
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)