#[non_exhaustive]pub enum MessageReferenceType {
Default,
Forward,
Unknown(u8),
}
Expand description
The type of reference for a message.
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.
Default
A standard reference used by replies.
Forward
Reference used to point to a message at a point in time.
Unknown(u8)
An unknown message reference type.
Implementations§
Trait Implementations§
source§impl Clone for MessageReferenceType
impl Clone for MessageReferenceType
source§fn clone(&self) -> MessageReferenceType
fn clone(&self) -> MessageReferenceType
Returns a copy 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 MessageReferenceType
impl Debug for MessageReferenceType
source§impl Default for MessageReferenceType
impl Default for MessageReferenceType
source§fn default() -> MessageReferenceType
fn default() -> MessageReferenceType
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for MessageReferenceType
impl<'de> Deserialize<'de> for MessageReferenceType
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
source§impl From<MessageReferenceType> for u8
impl From<MessageReferenceType> for u8
source§fn from(value: MessageReferenceType) -> Self
fn from(value: MessageReferenceType) -> Self
Converts to this type from the input type.
source§impl From<u8> for MessageReferenceType
impl From<u8> for MessageReferenceType
source§impl Hash for MessageReferenceType
impl Hash for MessageReferenceType
source§impl PartialEq for MessageReferenceType
impl PartialEq for MessageReferenceType
source§impl Serialize for MessageReferenceType
impl Serialize for MessageReferenceType
impl Copy for MessageReferenceType
impl Eq for MessageReferenceType
impl StructuralPartialEq for MessageReferenceType
Auto Trait Implementations§
impl Freeze for MessageReferenceType
impl RefUnwindSafe for MessageReferenceType
impl Send for MessageReferenceType
impl Sync for MessageReferenceType
impl Unpin for MessageReferenceType
impl UnwindSafe for MessageReferenceType
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
)