#[non_exhaustive]pub enum Pdu {
RoomV1Pdu(RoomV1Pdu),
RoomV3Pdu(RoomV3Pdu),
}
Available on crate features
events
and unstable-pdu
only.Expand description
Enum for PDU schemas
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
RoomV1Pdu(RoomV1Pdu)
PDU for room versions 1 and 2.
RoomV3Pdu(RoomV3Pdu)
PDU for room versions 3 and above.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Pdu
impl<'de> Deserialize<'de> for Pdu
Source§fn deserialize<D>(
deserializer: D,
) -> Result<Pdu, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<Pdu, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for Pdu
impl Serialize for Pdu
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 Freeze for Pdu
impl RefUnwindSafe for Pdu
impl Send for Pdu
impl Sync for Pdu
impl Unpin for Pdu
impl UnwindSafe for Pdu
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