[][src]Trait ruma_events::FromRaw

pub trait FromRaw: Sized {
    type Raw: DeserializeOwned;
    fn from_raw(_: Self::Raw) -> Self;
}

See TryFromRaw. This trait is merely a convenience that is be implemented instead of TryFromRaw to get a TryFromRaw implementation with slightly less code if the conversion can't fail, that is, the raw type and Self are identical in definition.

Associated Types

type Raw: DeserializeOwned

The raw type.

Loading content...

Required methods

fn from_raw(_: Self::Raw) -> Self

Converts the raw type to Self.

Loading content...

Implementations on Foreign Types

impl FromRaw for Value[src]

type Raw = Self

impl<K, V> FromRaw for BTreeMap<K, V> where
    Self: DeserializeOwned
[src]

type Raw = Self

Loading content...

Implementors

impl FromRaw for EncryptedEventContent[src]

type Raw = EncryptedEventContent

impl FromRaw for MessageEventContent[src]

type Raw = MessageEventContent

impl FromRaw for AnswerEvent[src]

type Raw = AnswerEvent

impl FromRaw for AnswerEventContent[src]

type Raw = AnswerEventContent

impl FromRaw for CandidatesEvent[src]

type Raw = CandidatesEvent

impl FromRaw for CandidatesEventContent[src]

type Raw = CandidatesEventContent

impl FromRaw for HangupEvent[src]

type Raw = HangupEvent

impl FromRaw for HangupEventContent[src]

type Raw = HangupEventContent

impl FromRaw for InviteEvent[src]

type Raw = InviteEvent

impl FromRaw for InviteEventContent[src]

type Raw = InviteEventContent

impl FromRaw for CustomEvent[src]

type Raw = CustomEvent

impl FromRaw for CustomRoomEvent[src]

type Raw = CustomRoomEvent

impl FromRaw for CustomStateEvent[src]

type Raw = CustomStateEvent

impl FromRaw for DirectEvent[src]

type Raw = DirectEvent

impl FromRaw for DummyEvent[src]

type Raw = DummyEvent

impl FromRaw for ForwardedRoomKeyEvent[src]

type Raw = ForwardedRoomKeyEvent

impl FromRaw for ForwardedRoomKeyEventContent[src]

type Raw = ForwardedRoomKeyEventContent

impl FromRaw for FullyReadEvent[src]

type Raw = FullyReadEvent

impl FromRaw for FullyReadEventContent[src]

type Raw = FullyReadEventContent

impl FromRaw for IgnoredUserListEvent[src]

type Raw = IgnoredUserListEvent

impl FromRaw for IgnoredUserListEventContent[src]

type Raw = IgnoredUserListEventContent

impl FromRaw for AcceptEvent[src]

type Raw = AcceptEvent

impl FromRaw for AcceptEventContent[src]

type Raw = AcceptEventContent

impl FromRaw for CancelEvent[src]

type Raw = CancelEvent

impl FromRaw for CancelEventContent[src]

type Raw = CancelEventContent

impl FromRaw for KeyEvent[src]

type Raw = KeyEvent

impl FromRaw for KeyEventContent[src]

type Raw = KeyEventContent

impl FromRaw for MacEvent[src]

type Raw = MacEvent

impl FromRaw for MacEventContent[src]

type Raw = MacEventContent

impl FromRaw for RequestEvent[src]

type Raw = RequestEvent

impl FromRaw for RequestEventContent[src]

type Raw = RequestEventContent

impl FromRaw for PresenceEvent[src]

type Raw = PresenceEvent

impl FromRaw for PresenceEventContent[src]

type Raw = PresenceEventContent

impl FromRaw for PushRulesEvent[src]

type Raw = PushRulesEvent

impl FromRaw for PushRulesEventContent[src]

type Raw = PushRulesEventContent

impl FromRaw for ReceiptEvent[src]

type Raw = ReceiptEvent

impl FromRaw for AliasesEvent[src]

type Raw = AliasesEvent

impl FromRaw for AliasesEventContent[src]

type Raw = AliasesEventContent

impl FromRaw for AvatarEvent[src]

type Raw = AvatarEvent

impl FromRaw for AvatarEventContent[src]

type Raw = AvatarEventContent

impl FromRaw for CanonicalAliasEvent[src]

type Raw = CanonicalAliasEvent

impl FromRaw for CanonicalAliasEventContent[src]

type Raw = CanonicalAliasEventContent

impl FromRaw for CreateEvent[src]

type Raw = CreateEvent

impl FromRaw for CreateEventContent[src]

type Raw = CreateEventContent

impl FromRaw for EncryptedEvent[src]

type Raw = EncryptedEvent

impl FromRaw for EncryptionEvent[src]

type Raw = EncryptionEvent

impl FromRaw for EncryptionEventContent[src]

type Raw = EncryptionEventContent

impl FromRaw for GuestAccessEvent[src]

type Raw = GuestAccessEvent

impl FromRaw for GuestAccessEventContent[src]

type Raw = GuestAccessEventContent

impl FromRaw for HistoryVisibilityEvent[src]

type Raw = HistoryVisibilityEvent

impl FromRaw for HistoryVisibilityEventContent[src]

type Raw = HistoryVisibilityEventContent

impl FromRaw for JoinRulesEvent[src]

type Raw = JoinRulesEvent

impl FromRaw for JoinRulesEventContent[src]

type Raw = JoinRulesEventContent

impl FromRaw for MemberEvent[src]

type Raw = MemberEvent

impl FromRaw for MemberEventContent[src]

type Raw = MemberEventContent

impl FromRaw for FeedbackEvent[src]

type Raw = FeedbackEvent

impl FromRaw for FeedbackEventContent[src]

type Raw = FeedbackEventContent

impl FromRaw for MessageEvent[src]

type Raw = MessageEvent

impl FromRaw for PinnedEventsEvent[src]

type Raw = PinnedEventsEvent

impl FromRaw for PinnedEventsEventContent[src]

type Raw = PinnedEventsEventContent

impl FromRaw for PowerLevelsEvent[src]

type Raw = PowerLevelsEvent

impl FromRaw for PowerLevelsEventContent[src]

type Raw = PowerLevelsEventContent

impl FromRaw for RedactionEvent[src]

type Raw = RedactionEvent

impl FromRaw for RedactionEventContent[src]

type Raw = RedactionEventContent

impl FromRaw for ServerAclEvent[src]

type Raw = ServerAclEvent

impl FromRaw for ServerAclEventContent[src]

type Raw = ServerAclEventContent

impl FromRaw for ThirdPartyInviteEvent[src]

type Raw = ThirdPartyInviteEvent

impl FromRaw for ThirdPartyInviteEventContent[src]

type Raw = ThirdPartyInviteEventContent

impl FromRaw for TombstoneEvent[src]

type Raw = TombstoneEvent

impl FromRaw for TombstoneEventContent[src]

type Raw = TombstoneEventContent

impl FromRaw for TopicEvent[src]

type Raw = TopicEvent

impl FromRaw for TopicEventContent[src]

type Raw = TopicEventContent

impl FromRaw for RoomKeyEvent[src]

type Raw = RoomKeyEvent

impl FromRaw for RoomKeyEventContent[src]

type Raw = RoomKeyEventContent

impl FromRaw for RoomKeyRequestEvent[src]

type Raw = RoomKeyRequestEvent

impl FromRaw for RoomKeyRequestEventContent[src]

type Raw = RoomKeyRequestEventContent

impl FromRaw for StickerEvent[src]

type Raw = StickerEvent

impl FromRaw for StickerEventContent[src]

type Raw = StickerEventContent

impl FromRaw for Empty[src]

type Raw = Self

impl FromRaw for TagEvent[src]

type Raw = TagEvent

impl FromRaw for TagEventContent[src]

type Raw = TagEventContent

impl FromRaw for TypingEvent[src]

type Raw = TypingEvent

impl FromRaw for TypingEventContent[src]

type Raw = TypingEventContent

Loading content...