Enum ruma_events::pdu::Pdu
source · pub enum Pdu {
RoomV1Pdu(RoomV1Pdu),
RoomV3Pdu(RoomV3Pdu),
}
Expand description
Enum for PDU schemas
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<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
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)