Enum matrix_sdk_base::ruma::events::AnyMessageLikeEvent
#[non_exhaustive]pub enum AnyMessageLikeEvent {
Show 26 variants
CallAnswer(MessageLikeEvent<CallAnswerEventContent>),
CallInvite(MessageLikeEvent<CallInviteEventContent>),
CallHangup(MessageLikeEvent<CallHangupEventContent>),
CallCandidates(MessageLikeEvent<CallCandidatesEventContent>),
CallNegotiate(MessageLikeEvent<CallNegotiateEventContent>),
CallReject(MessageLikeEvent<CallRejectEventContent>),
CallSelectAnswer(MessageLikeEvent<CallSelectAnswerEventContent>),
KeyVerificationReady(MessageLikeEvent<KeyVerificationReadyEventContent>),
KeyVerificationStart(MessageLikeEvent<KeyVerificationStartEventContent>),
KeyVerificationCancel(MessageLikeEvent<KeyVerificationCancelEventContent>),
KeyVerificationAccept(MessageLikeEvent<KeyVerificationAcceptEventContent>),
KeyVerificationKey(MessageLikeEvent<KeyVerificationKeyEventContent>),
KeyVerificationMac(MessageLikeEvent<KeyVerificationMacEventContent>),
KeyVerificationDone(MessageLikeEvent<KeyVerificationDoneEventContent>),
Message(MessageLikeEvent<MessageEventContent>),
PollStart(MessageLikeEvent<PollStartEventContent>),
UnstablePollStart(MessageLikeEvent<UnstablePollStartEventContent>),
PollResponse(MessageLikeEvent<PollResponseEventContent>),
UnstablePollResponse(MessageLikeEvent<UnstablePollResponseEventContent>),
PollEnd(MessageLikeEvent<PollEndEventContent>),
UnstablePollEnd(MessageLikeEvent<UnstablePollEndEventContent>),
Reaction(MessageLikeEvent<ReactionEventContent>),
RoomEncrypted(MessageLikeEvent<RoomEncryptedEventContent>),
RoomMessage(MessageLikeEvent<RoomMessageEventContent>),
RoomRedaction(RoomRedactionEvent),
Sticker(MessageLikeEvent<StickerEventContent>),
}
Expand description
Any message-like event.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
CallAnswer(MessageLikeEvent<CallAnswerEventContent>)
m.call.answer
CallInvite(MessageLikeEvent<CallInviteEventContent>)
m.call.invite
CallHangup(MessageLikeEvent<CallHangupEventContent>)
m.call.hangup
CallCandidates(MessageLikeEvent<CallCandidatesEventContent>)
m.call.candidates
CallNegotiate(MessageLikeEvent<CallNegotiateEventContent>)
m.call.negotiate
CallReject(MessageLikeEvent<CallRejectEventContent>)
m.call.reject
CallSelectAnswer(MessageLikeEvent<CallSelectAnswerEventContent>)
m.call.select_answer
KeyVerificationReady(MessageLikeEvent<KeyVerificationReadyEventContent>)
m.key.verification.ready
KeyVerificationStart(MessageLikeEvent<KeyVerificationStartEventContent>)
m.key.verification.start
KeyVerificationCancel(MessageLikeEvent<KeyVerificationCancelEventContent>)
m.key.verification.cancel
KeyVerificationAccept(MessageLikeEvent<KeyVerificationAcceptEventContent>)
m.key.verification.accept
KeyVerificationKey(MessageLikeEvent<KeyVerificationKeyEventContent>)
m.key.verification.key
KeyVerificationMac(MessageLikeEvent<KeyVerificationMacEventContent>)
m.key.verification.mac
KeyVerificationDone(MessageLikeEvent<KeyVerificationDoneEventContent>)
m.key.verification.done
Message(MessageLikeEvent<MessageEventContent>)
unstable-msc1767
only.m.message
This variant uses the unstable type org.matrix.msc1767.message
.
This variant can also be deserialized from the m.message
type.
PollStart(MessageLikeEvent<PollStartEventContent>)
unstable-msc3381
only.m.poll.start
UnstablePollStart(MessageLikeEvent<UnstablePollStartEventContent>)
unstable-msc3381
only.org.matrix.msc3381.poll.start
PollResponse(MessageLikeEvent<PollResponseEventContent>)
unstable-msc3381
only.m.poll.response
UnstablePollResponse(MessageLikeEvent<UnstablePollResponseEventContent>)
unstable-msc3381
only.org.matrix.msc3381.poll.response
PollEnd(MessageLikeEvent<PollEndEventContent>)
unstable-msc3381
only.m.poll.end
UnstablePollEnd(MessageLikeEvent<UnstablePollEndEventContent>)
unstable-msc3381
only.org.matrix.msc3381.poll.end
Reaction(MessageLikeEvent<ReactionEventContent>)
m.reaction
RoomEncrypted(MessageLikeEvent<RoomEncryptedEventContent>)
m.room.encrypted
RoomMessage(MessageLikeEvent<RoomMessageEventContent>)
m.room.message
RoomRedaction(RoomRedactionEvent)
m.room.redaction
Sticker(MessageLikeEvent<StickerEventContent>)
m.sticker
Implementations§
§impl AnyMessageLikeEvent
impl AnyMessageLikeEvent
pub fn event_type(&self) -> MessageLikeEventType
pub fn event_type(&self) -> MessageLikeEventType
Returns the type
of this event.
pub fn original_content(&self) -> Option<AnyMessageLikeEventContent>
pub fn original_content(&self) -> Option<AnyMessageLikeEventContent>
Returns the content for this event if it is not redacted, or None
if it is.
pub fn origin_server_ts(&self) -> MilliSecondsSinceUnixEpoch
pub fn origin_server_ts(&self) -> MilliSecondsSinceUnixEpoch
Returns this event’s origin_server_ts
field.
pub fn relations(&self) -> BundledMessageLikeRelations<AnySyncMessageLikeEvent>
pub fn relations(&self) -> BundledMessageLikeRelations<AnySyncMessageLikeEvent>
Returns this event’s relations
from inside unsigned
.
pub fn transaction_id(&self) -> Option<&TransactionId>
pub fn transaction_id(&self) -> Option<&TransactionId>
Returns this event’s transaction_id
from inside unsigned
, if there is one.
Trait Implementations§
§impl Clone for AnyMessageLikeEvent
impl Clone for AnyMessageLikeEvent
§fn clone(&self) -> AnyMessageLikeEvent
fn clone(&self) -> AnyMessageLikeEvent
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more§impl Debug for AnyMessageLikeEvent
impl Debug for AnyMessageLikeEvent
§impl<'de> Deserialize<'de> for AnyMessageLikeEvent
impl<'de> Deserialize<'de> for AnyMessageLikeEvent
§fn deserialize<D>(
deserializer: D
) -> Result<AnyMessageLikeEvent, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D
) -> Result<AnyMessageLikeEvent, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
§impl From<AnyMessageLikeEvent> for AnySyncMessageLikeEvent
impl From<AnyMessageLikeEvent> for AnySyncMessageLikeEvent
§fn from(event: AnyMessageLikeEvent) -> AnySyncMessageLikeEvent
fn from(event: AnyMessageLikeEvent) -> AnySyncMessageLikeEvent
§impl From<AnyMessageLikeEvent> for AnyTimelineEvent
impl From<AnyMessageLikeEvent> for AnyTimelineEvent
§fn from(c: AnyMessageLikeEvent) -> AnyTimelineEvent
fn from(c: AnyMessageLikeEvent) -> AnyTimelineEvent
§impl From<MessageLikeEvent<CallAnswerEventContent>> for AnyMessageLikeEvent
impl From<MessageLikeEvent<CallAnswerEventContent>> for AnyMessageLikeEvent
§fn from(c: MessageLikeEvent<CallAnswerEventContent>) -> AnyMessageLikeEvent
fn from(c: MessageLikeEvent<CallAnswerEventContent>) -> AnyMessageLikeEvent
§impl From<MessageLikeEvent<CallCandidatesEventContent>> for AnyMessageLikeEvent
impl From<MessageLikeEvent<CallCandidatesEventContent>> for AnyMessageLikeEvent
§fn from(c: MessageLikeEvent<CallCandidatesEventContent>) -> AnyMessageLikeEvent
fn from(c: MessageLikeEvent<CallCandidatesEventContent>) -> AnyMessageLikeEvent
§impl From<MessageLikeEvent<CallHangupEventContent>> for AnyMessageLikeEvent
impl From<MessageLikeEvent<CallHangupEventContent>> for AnyMessageLikeEvent
§fn from(c: MessageLikeEvent<CallHangupEventContent>) -> AnyMessageLikeEvent
fn from(c: MessageLikeEvent<CallHangupEventContent>) -> AnyMessageLikeEvent
§impl From<MessageLikeEvent<CallInviteEventContent>> for AnyMessageLikeEvent
impl From<MessageLikeEvent<CallInviteEventContent>> for AnyMessageLikeEvent
§fn from(c: MessageLikeEvent<CallInviteEventContent>) -> AnyMessageLikeEvent
fn from(c: MessageLikeEvent<CallInviteEventContent>) -> AnyMessageLikeEvent
§impl From<MessageLikeEvent<CallNegotiateEventContent>> for AnyMessageLikeEvent
impl From<MessageLikeEvent<CallNegotiateEventContent>> for AnyMessageLikeEvent
§fn from(c: MessageLikeEvent<CallNegotiateEventContent>) -> AnyMessageLikeEvent
fn from(c: MessageLikeEvent<CallNegotiateEventContent>) -> AnyMessageLikeEvent
§impl From<MessageLikeEvent<CallRejectEventContent>> for AnyMessageLikeEvent
impl From<MessageLikeEvent<CallRejectEventContent>> for AnyMessageLikeEvent
§fn from(c: MessageLikeEvent<CallRejectEventContent>) -> AnyMessageLikeEvent
fn from(c: MessageLikeEvent<CallRejectEventContent>) -> AnyMessageLikeEvent
§impl From<MessageLikeEvent<CallSelectAnswerEventContent>> for AnyMessageLikeEvent
impl From<MessageLikeEvent<CallSelectAnswerEventContent>> for AnyMessageLikeEvent
§fn from(
c: MessageLikeEvent<CallSelectAnswerEventContent>
) -> AnyMessageLikeEvent
fn from( c: MessageLikeEvent<CallSelectAnswerEventContent> ) -> AnyMessageLikeEvent
§impl From<MessageLikeEvent<KeyVerificationAcceptEventContent>> for AnyMessageLikeEvent
impl From<MessageLikeEvent<KeyVerificationAcceptEventContent>> for AnyMessageLikeEvent
§fn from(
c: MessageLikeEvent<KeyVerificationAcceptEventContent>
) -> AnyMessageLikeEvent
fn from( c: MessageLikeEvent<KeyVerificationAcceptEventContent> ) -> AnyMessageLikeEvent
§impl From<MessageLikeEvent<KeyVerificationCancelEventContent>> for AnyMessageLikeEvent
impl From<MessageLikeEvent<KeyVerificationCancelEventContent>> for AnyMessageLikeEvent
§fn from(
c: MessageLikeEvent<KeyVerificationCancelEventContent>
) -> AnyMessageLikeEvent
fn from( c: MessageLikeEvent<KeyVerificationCancelEventContent> ) -> AnyMessageLikeEvent
§impl From<MessageLikeEvent<KeyVerificationDoneEventContent>> for AnyMessageLikeEvent
impl From<MessageLikeEvent<KeyVerificationDoneEventContent>> for AnyMessageLikeEvent
§fn from(
c: MessageLikeEvent<KeyVerificationDoneEventContent>
) -> AnyMessageLikeEvent
fn from( c: MessageLikeEvent<KeyVerificationDoneEventContent> ) -> AnyMessageLikeEvent
§impl From<MessageLikeEvent<KeyVerificationKeyEventContent>> for AnyMessageLikeEvent
impl From<MessageLikeEvent<KeyVerificationKeyEventContent>> for AnyMessageLikeEvent
§fn from(
c: MessageLikeEvent<KeyVerificationKeyEventContent>
) -> AnyMessageLikeEvent
fn from( c: MessageLikeEvent<KeyVerificationKeyEventContent> ) -> AnyMessageLikeEvent
§impl From<MessageLikeEvent<KeyVerificationMacEventContent>> for AnyMessageLikeEvent
impl From<MessageLikeEvent<KeyVerificationMacEventContent>> for AnyMessageLikeEvent
§fn from(
c: MessageLikeEvent<KeyVerificationMacEventContent>
) -> AnyMessageLikeEvent
fn from( c: MessageLikeEvent<KeyVerificationMacEventContent> ) -> AnyMessageLikeEvent
§impl From<MessageLikeEvent<KeyVerificationReadyEventContent>> for AnyMessageLikeEvent
impl From<MessageLikeEvent<KeyVerificationReadyEventContent>> for AnyMessageLikeEvent
§fn from(
c: MessageLikeEvent<KeyVerificationReadyEventContent>
) -> AnyMessageLikeEvent
fn from( c: MessageLikeEvent<KeyVerificationReadyEventContent> ) -> AnyMessageLikeEvent
§impl From<MessageLikeEvent<KeyVerificationStartEventContent>> for AnyMessageLikeEvent
impl From<MessageLikeEvent<KeyVerificationStartEventContent>> for AnyMessageLikeEvent
§fn from(
c: MessageLikeEvent<KeyVerificationStartEventContent>
) -> AnyMessageLikeEvent
fn from( c: MessageLikeEvent<KeyVerificationStartEventContent> ) -> AnyMessageLikeEvent
§impl From<MessageLikeEvent<MessageEventContent>> for AnyMessageLikeEvent
Available on crate feature unstable-msc1767
only.
impl From<MessageLikeEvent<MessageEventContent>> for AnyMessageLikeEvent
unstable-msc1767
only.§fn from(c: MessageLikeEvent<MessageEventContent>) -> AnyMessageLikeEvent
fn from(c: MessageLikeEvent<MessageEventContent>) -> AnyMessageLikeEvent
§impl From<MessageLikeEvent<PollEndEventContent>> for AnyMessageLikeEvent
Available on crate feature unstable-msc3381
only.
impl From<MessageLikeEvent<PollEndEventContent>> for AnyMessageLikeEvent
unstable-msc3381
only.§fn from(c: MessageLikeEvent<PollEndEventContent>) -> AnyMessageLikeEvent
fn from(c: MessageLikeEvent<PollEndEventContent>) -> AnyMessageLikeEvent
§impl From<MessageLikeEvent<PollResponseEventContent>> for AnyMessageLikeEvent
Available on crate feature unstable-msc3381
only.
impl From<MessageLikeEvent<PollResponseEventContent>> for AnyMessageLikeEvent
unstable-msc3381
only.§fn from(c: MessageLikeEvent<PollResponseEventContent>) -> AnyMessageLikeEvent
fn from(c: MessageLikeEvent<PollResponseEventContent>) -> AnyMessageLikeEvent
§impl From<MessageLikeEvent<PollStartEventContent>> for AnyMessageLikeEvent
Available on crate feature unstable-msc3381
only.
impl From<MessageLikeEvent<PollStartEventContent>> for AnyMessageLikeEvent
unstable-msc3381
only.§fn from(c: MessageLikeEvent<PollStartEventContent>) -> AnyMessageLikeEvent
fn from(c: MessageLikeEvent<PollStartEventContent>) -> AnyMessageLikeEvent
§impl From<MessageLikeEvent<ReactionEventContent>> for AnyMessageLikeEvent
impl From<MessageLikeEvent<ReactionEventContent>> for AnyMessageLikeEvent
§fn from(c: MessageLikeEvent<ReactionEventContent>) -> AnyMessageLikeEvent
fn from(c: MessageLikeEvent<ReactionEventContent>) -> AnyMessageLikeEvent
§impl From<MessageLikeEvent<RoomEncryptedEventContent>> for AnyMessageLikeEvent
impl From<MessageLikeEvent<RoomEncryptedEventContent>> for AnyMessageLikeEvent
§fn from(c: MessageLikeEvent<RoomEncryptedEventContent>) -> AnyMessageLikeEvent
fn from(c: MessageLikeEvent<RoomEncryptedEventContent>) -> AnyMessageLikeEvent
§impl From<MessageLikeEvent<RoomMessageEventContent>> for AnyMessageLikeEvent
impl From<MessageLikeEvent<RoomMessageEventContent>> for AnyMessageLikeEvent
§fn from(c: MessageLikeEvent<RoomMessageEventContent>) -> AnyMessageLikeEvent
fn from(c: MessageLikeEvent<RoomMessageEventContent>) -> AnyMessageLikeEvent
§impl From<MessageLikeEvent<StickerEventContent>> for AnyMessageLikeEvent
impl From<MessageLikeEvent<StickerEventContent>> for AnyMessageLikeEvent
§fn from(c: MessageLikeEvent<StickerEventContent>) -> AnyMessageLikeEvent
fn from(c: MessageLikeEvent<StickerEventContent>) -> AnyMessageLikeEvent
§impl From<MessageLikeEvent<UnstablePollEndEventContent>> for AnyMessageLikeEvent
Available on crate feature unstable-msc3381
only.
impl From<MessageLikeEvent<UnstablePollEndEventContent>> for AnyMessageLikeEvent
unstable-msc3381
only.§fn from(c: MessageLikeEvent<UnstablePollEndEventContent>) -> AnyMessageLikeEvent
fn from(c: MessageLikeEvent<UnstablePollEndEventContent>) -> AnyMessageLikeEvent
§impl From<MessageLikeEvent<UnstablePollResponseEventContent>> for AnyMessageLikeEvent
Available on crate feature unstable-msc3381
only.
impl From<MessageLikeEvent<UnstablePollResponseEventContent>> for AnyMessageLikeEvent
unstable-msc3381
only.§fn from(
c: MessageLikeEvent<UnstablePollResponseEventContent>
) -> AnyMessageLikeEvent
fn from( c: MessageLikeEvent<UnstablePollResponseEventContent> ) -> AnyMessageLikeEvent
§impl From<MessageLikeEvent<UnstablePollStartEventContent>> for AnyMessageLikeEvent
Available on crate feature unstable-msc3381
only.
impl From<MessageLikeEvent<UnstablePollStartEventContent>> for AnyMessageLikeEvent
unstable-msc3381
only.