pub struct SyncEphemeralRoomEvent<C>where
C: EphemeralRoomEventContent,{
pub content: C,
}
Available on crate feature
events
only.Expand description
An ephemeral room event without a room_id
.
Fields§
§content: C
Data specific to the event type.
Trait Implementations§
Source§impl<C> Clone for SyncEphemeralRoomEvent<C>where
C: Clone + EphemeralRoomEventContent,
impl<C> Clone for SyncEphemeralRoomEvent<C>where
C: Clone + EphemeralRoomEventContent,
Source§fn clone(&self) -> SyncEphemeralRoomEvent<C>
fn clone(&self) -> SyncEphemeralRoomEvent<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 SyncEphemeralRoomEvent<C>where
C: Debug + EphemeralRoomEventContent,
impl<C> Debug for SyncEphemeralRoomEvent<C>where
C: Debug + EphemeralRoomEventContent,
Source§impl<'de, C> Deserialize<'de> for SyncEphemeralRoomEvent<C>where
C: EphemeralRoomEventContent + EventContentFromType,
impl<'de, C> Deserialize<'de> for SyncEphemeralRoomEvent<C>where
C: EphemeralRoomEventContent + EventContentFromType,
Source§fn deserialize<D>(
deserializer: D,
) -> Result<SyncEphemeralRoomEvent<C>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<SyncEphemeralRoomEvent<C>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<SyncEphemeralRoomEvent<ReceiptEventContent>> for AnySyncEphemeralRoomEvent
impl From<SyncEphemeralRoomEvent<ReceiptEventContent>> for AnySyncEphemeralRoomEvent
Source§fn from(
c: SyncEphemeralRoomEvent<ReceiptEventContent>,
) -> AnySyncEphemeralRoomEvent
fn from( c: SyncEphemeralRoomEvent<ReceiptEventContent>, ) -> AnySyncEphemeralRoomEvent
Converts to this type from the input type.
Source§impl From<SyncEphemeralRoomEvent<TypingEventContent>> for AnySyncEphemeralRoomEvent
impl From<SyncEphemeralRoomEvent<TypingEventContent>> for AnySyncEphemeralRoomEvent
Source§fn from(
c: SyncEphemeralRoomEvent<TypingEventContent>,
) -> AnySyncEphemeralRoomEvent
fn from( c: SyncEphemeralRoomEvent<TypingEventContent>, ) -> AnySyncEphemeralRoomEvent
Converts to this type from the input type.
Source§impl<C> Serialize for SyncEphemeralRoomEvent<C>where
C: EphemeralRoomEventContent,
impl<C> Serialize for SyncEphemeralRoomEvent<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 SyncEphemeralRoomEvent<C>where
C: Freeze,
impl<C> RefUnwindSafe for SyncEphemeralRoomEvent<C>where
C: RefUnwindSafe,
impl<C> Send for SyncEphemeralRoomEvent<C>where
C: Send,
impl<C> Sync for SyncEphemeralRoomEvent<C>where
C: Sync,
impl<C> Unpin for SyncEphemeralRoomEvent<C>where
C: Unpin,
impl<C> UnwindSafe for SyncEphemeralRoomEvent<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