pub enum DraftMessage {
Empty(DraftMessageEmpty),
DraftMessage(DraftMessage),
}Expand description
Variants§
Empty(DraftMessageEmpty)
DraftMessage(DraftMessage)
Trait Implementations§
Source§impl Clone for DraftMessage
impl Clone for DraftMessage
Source§fn clone(&self) -> DraftMessage
fn clone(&self) -> DraftMessage
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DraftMessage
impl Debug for DraftMessage
Source§impl Deserializable for DraftMessage
impl Deserializable for DraftMessage
Source§fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
Read
Self from buf, advancing its position.Source§fn from_bytes(bytes: &[u8]) -> Result<Self>
fn from_bytes(bytes: &[u8]) -> Result<Self>
Convenience: deserialize from a byte slice.
Source§impl From<DraftMessage> for DraftMessage
impl From<DraftMessage> for DraftMessage
Source§fn from(x: DraftMessage) -> Self
fn from(x: DraftMessage) -> Self
Converts to this type from the input type.
Source§impl From<DraftMessageEmpty> for DraftMessage
impl From<DraftMessageEmpty> for DraftMessage
Source§fn from(x: DraftMessageEmpty) -> Self
fn from(x: DraftMessageEmpty) -> Self
Converts to this type from the input type.
Source§impl PartialEq for DraftMessage
impl PartialEq for DraftMessage
Source§impl Serializable for DraftMessage
impl Serializable for DraftMessage
Source§impl TryFrom<DraftMessage> for DraftMessage
impl TryFrom<DraftMessage> for DraftMessage
Source§type Error = DraftMessage
type Error = DraftMessage
The type returned in the event of a conversion error.
Source§impl TryFrom<DraftMessage> for DraftMessageEmpty
impl TryFrom<DraftMessage> for DraftMessageEmpty
Source§type Error = DraftMessage
type Error = DraftMessage
The type returned in the event of a conversion error.
impl StructuralPartialEq for DraftMessage
Auto Trait Implementations§
impl Freeze for DraftMessage
impl RefUnwindSafe for DraftMessage
impl Send for DraftMessage
impl Sync for DraftMessage
impl Unpin for DraftMessage
impl UnsafeUnpin for DraftMessage
impl UnwindSafe for DraftMessage
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