Struct ruma_events::RedactedSyncMessageEvent
source · [−]pub struct RedactedSyncMessageEvent<C: RedactedMessageEventContent> {
pub content: C,
pub event_id: Box<EventId>,
pub sender: Box<UserId>,
pub origin_server_ts: MilliSecondsSinceUnixEpoch,
pub unsigned: RedactedUnsigned,
}
Expand description
A redacted message event without a room_id
.
RedactedSyncMessageEvent
implements the comparison traits using only the event_id
field, a
sorted list would be sorted lexicographically based on the event’s EventId
.
Fields
content: C
Data specific to the event type.
event_id: Box<EventId>
The globally unique event identifier for the user who sent the event.
sender: Box<UserId>
The fully-qualified ID of the user who sent this event.
origin_server_ts: MilliSecondsSinceUnixEpoch
Timestamp in milliseconds on originating homeserver when this event was sent.
unsigned: RedactedUnsigned
Additional key-value pairs not signed by the homeserver.
Implementations
sourceimpl<C: RedactedMessageEventContent> RedactedSyncMessageEvent<C>
impl<C: RedactedMessageEventContent> RedactedSyncMessageEvent<C>
sourcepub fn into_full_event(self, room_id: Box<RoomId>) -> RedactedMessageEvent<C>
pub fn into_full_event(self, room_id: Box<RoomId>) -> RedactedMessageEvent<C>
Convert this sync event into a full event, one with a room_id field.
Trait Implementations
sourceimpl<C: Clone + RedactedMessageEventContent> Clone for RedactedSyncMessageEvent<C>
impl<C: Clone + RedactedMessageEventContent> Clone for RedactedSyncMessageEvent<C>
sourcefn clone(&self) -> RedactedSyncMessageEvent<C>
fn clone(&self) -> RedactedSyncMessageEvent<C>
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 more
sourceimpl<C: Debug + RedactedMessageEventContent> Debug for RedactedSyncMessageEvent<C>
impl<C: Debug + RedactedMessageEventContent> Debug for RedactedSyncMessageEvent<C>
sourceimpl<'de, C: RedactedMessageEventContent> Deserialize<'de> for RedactedSyncMessageEvent<C>
impl<'de, C: RedactedMessageEventContent> Deserialize<'de> for RedactedSyncMessageEvent<C>
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<C: RedactedMessageEventContent> From<RedactedMessageEvent<C>> for RedactedSyncMessageEvent<C>
impl<C: RedactedMessageEventContent> From<RedactedMessageEvent<C>> for RedactedSyncMessageEvent<C>
sourcefn from(event: RedactedMessageEvent<C>) -> Self
fn from(event: RedactedMessageEvent<C>) -> Self
Converts to this type from the input type.
sourceimpl From<RedactedSyncMessageEvent<RedactedCallAnswerEventContent>> for AnyRedactedSyncMessageEvent
impl From<RedactedSyncMessageEvent<RedactedCallAnswerEventContent>> for AnyRedactedSyncMessageEvent
sourcefn from(c: RedactedSyncCallAnswerEvent) -> Self
fn from(c: RedactedSyncCallAnswerEvent) -> Self
Converts to this type from the input type.
sourceimpl From<RedactedSyncMessageEvent<RedactedCallCandidatesEventContent>> for AnyRedactedSyncMessageEvent
impl From<RedactedSyncMessageEvent<RedactedCallCandidatesEventContent>> for AnyRedactedSyncMessageEvent
sourcefn from(c: RedactedSyncCallCandidatesEvent) -> Self
fn from(c: RedactedSyncCallCandidatesEvent) -> Self
Converts to this type from the input type.
sourceimpl From<RedactedSyncMessageEvent<RedactedCallHangupEventContent>> for AnyRedactedSyncMessageEvent
impl From<RedactedSyncMessageEvent<RedactedCallHangupEventContent>> for AnyRedactedSyncMessageEvent
sourcefn from(c: RedactedSyncCallHangupEvent) -> Self
fn from(c: RedactedSyncCallHangupEvent) -> Self
Converts to this type from the input type.
sourceimpl From<RedactedSyncMessageEvent<RedactedCallInviteEventContent>> for AnyRedactedSyncMessageEvent
impl From<RedactedSyncMessageEvent<RedactedCallInviteEventContent>> for AnyRedactedSyncMessageEvent
sourcefn from(c: RedactedSyncCallInviteEvent) -> Self
fn from(c: RedactedSyncCallInviteEvent) -> Self
Converts to this type from the input type.
sourceimpl From<RedactedSyncMessageEvent<RedactedKeyVerificationAcceptEventContent>> for AnyRedactedSyncMessageEvent
impl From<RedactedSyncMessageEvent<RedactedKeyVerificationAcceptEventContent>> for AnyRedactedSyncMessageEvent
sourcefn from(c: RedactedSyncKeyVerificationAcceptEvent) -> Self
fn from(c: RedactedSyncKeyVerificationAcceptEvent) -> Self
Converts to this type from the input type.
sourceimpl From<RedactedSyncMessageEvent<RedactedKeyVerificationCancelEventContent>> for AnyRedactedSyncMessageEvent
impl From<RedactedSyncMessageEvent<RedactedKeyVerificationCancelEventContent>> for AnyRedactedSyncMessageEvent
sourcefn from(c: RedactedSyncKeyVerificationCancelEvent) -> Self
fn from(c: RedactedSyncKeyVerificationCancelEvent) -> Self
Converts to this type from the input type.
sourceimpl From<RedactedSyncMessageEvent<RedactedKeyVerificationDoneEventContent>> for AnyRedactedSyncMessageEvent
impl From<RedactedSyncMessageEvent<RedactedKeyVerificationDoneEventContent>> for AnyRedactedSyncMessageEvent
sourcefn from(c: RedactedSyncKeyVerificationDoneEvent) -> Self
fn from(c: RedactedSyncKeyVerificationDoneEvent) -> Self
Converts to this type from the input type.
sourceimpl From<RedactedSyncMessageEvent<RedactedKeyVerificationKeyEventContent>> for AnyRedactedSyncMessageEvent
impl From<RedactedSyncMessageEvent<RedactedKeyVerificationKeyEventContent>> for AnyRedactedSyncMessageEvent
sourcefn from(c: RedactedSyncKeyVerificationKeyEvent) -> Self
fn from(c: RedactedSyncKeyVerificationKeyEvent) -> Self
Converts to this type from the input type.
sourceimpl From<RedactedSyncMessageEvent<RedactedKeyVerificationMacEventContent>> for AnyRedactedSyncMessageEvent
impl From<RedactedSyncMessageEvent<RedactedKeyVerificationMacEventContent>> for AnyRedactedSyncMessageEvent
sourcefn from(c: RedactedSyncKeyVerificationMacEvent) -> Self
fn from(c: RedactedSyncKeyVerificationMacEvent) -> Self
Converts to this type from the input type.
sourceimpl From<RedactedSyncMessageEvent<RedactedKeyVerificationReadyEventContent>> for AnyRedactedSyncMessageEvent
impl From<RedactedSyncMessageEvent<RedactedKeyVerificationReadyEventContent>> for AnyRedactedSyncMessageEvent
sourcefn from(c: RedactedSyncKeyVerificationReadyEvent) -> Self
fn from(c: RedactedSyncKeyVerificationReadyEvent) -> Self
Converts to this type from the input type.
sourceimpl From<RedactedSyncMessageEvent<RedactedKeyVerificationStartEventContent>> for AnyRedactedSyncMessageEvent
impl From<RedactedSyncMessageEvent<RedactedKeyVerificationStartEventContent>> for AnyRedactedSyncMessageEvent
sourcefn from(c: RedactedSyncKeyVerificationStartEvent) -> Self
fn from(c: RedactedSyncKeyVerificationStartEvent) -> Self
Converts to this type from the input type.
sourceimpl From<RedactedSyncMessageEvent<RedactedReactionEventContent>> for AnyRedactedSyncMessageEvent
Available on crate feature unstable-msc2677
only.
impl From<RedactedSyncMessageEvent<RedactedReactionEventContent>> for AnyRedactedSyncMessageEvent
unstable-msc2677
only.sourcefn from(c: RedactedSyncReactionEvent) -> Self
fn from(c: RedactedSyncReactionEvent) -> Self
Converts to this type from the input type.
sourceimpl From<RedactedSyncMessageEvent<RedactedRoomEncryptedEventContent>> for AnyRedactedSyncMessageEvent
impl From<RedactedSyncMessageEvent<RedactedRoomEncryptedEventContent>> for AnyRedactedSyncMessageEvent
sourcefn from(c: RedactedSyncRoomEncryptedEvent) -> Self
fn from(c: RedactedSyncRoomEncryptedEvent) -> Self
Converts to this type from the input type.
sourceimpl From<RedactedSyncMessageEvent<RedactedRoomMessageEventContent>> for AnyRedactedSyncMessageEvent
impl From<RedactedSyncMessageEvent<RedactedRoomMessageEventContent>> for AnyRedactedSyncMessageEvent
sourcefn from(c: RedactedSyncRoomMessageEvent) -> Self
fn from(c: RedactedSyncRoomMessageEvent) -> Self
Converts to this type from the input type.
sourceimpl From<RedactedSyncMessageEvent<RedactedRoomMessageFeedbackEventContent>> for AnyRedactedSyncMessageEvent
impl From<RedactedSyncMessageEvent<RedactedRoomMessageFeedbackEventContent>> for AnyRedactedSyncMessageEvent
sourcefn from(c: RedactedSyncRoomMessageFeedbackEvent) -> Self
fn from(c: RedactedSyncRoomMessageFeedbackEvent) -> Self
Converts to this type from the input type.
sourceimpl From<RedactedSyncMessageEvent<RedactedStickerEventContent>> for AnyRedactedSyncMessageEvent
impl From<RedactedSyncMessageEvent<RedactedStickerEventContent>> for AnyRedactedSyncMessageEvent
sourcefn from(c: RedactedSyncStickerEvent) -> Self
fn from(c: RedactedSyncStickerEvent) -> Self
Converts to this type from the input type.
sourceimpl<C: RedactedMessageEventContent> Ord for RedactedSyncMessageEvent<C>
impl<C: RedactedMessageEventContent> Ord for RedactedSyncMessageEvent<C>
sourceimpl<C: RedactedMessageEventContent> PartialEq<RedactedSyncMessageEvent<C>> for RedactedSyncMessageEvent<C>
impl<C: RedactedMessageEventContent> PartialEq<RedactedSyncMessageEvent<C>> for RedactedSyncMessageEvent<C>
sourceimpl<C: RedactedMessageEventContent> PartialOrd<RedactedSyncMessageEvent<C>> for RedactedSyncMessageEvent<C>
impl<C: RedactedMessageEventContent> PartialOrd<RedactedSyncMessageEvent<C>> for RedactedSyncMessageEvent<C>
sourcefn partial_cmp(&self, other: &Self) -> Option<Ordering>
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
Compares EventId
s and orders them lexicographically.
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl<C: RedactedMessageEventContent> Serialize for RedactedSyncMessageEvent<C>
impl<C: RedactedMessageEventContent> Serialize for RedactedSyncMessageEvent<C>
impl<C: RedactedMessageEventContent> Eq for RedactedSyncMessageEvent<C>
Auto Trait Implementations
impl<C> RefUnwindSafe for RedactedSyncMessageEvent<C> where
C: RefUnwindSafe,
impl<C> Send for RedactedSyncMessageEvent<C> where
C: Send,
impl<C> Sync for RedactedSyncMessageEvent<C> where
C: Sync,
impl<C> Unpin for RedactedSyncMessageEvent<C> where
C: Unpin,
impl<C> UnwindSafe for RedactedSyncMessageEvent<C> where
C: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more