Enum MessageKind
pub enum MessageKind {
PlainText,
Html,
Multipart,
Raw,
}Expand description
Message kind metadata.
Variants§
PlainText
Plain text body.
Html
HTML body.
Multipart
Multipart message metadata.
Raw
Raw message metadata.
Implementations§
§impl MessageKind
impl MessageKind
pub const fn default_content_type(self) -> Option<&'static str>
pub const fn default_content_type(self) -> Option<&'static str>
Returns the default content type for the kind when one is known.
Trait Implementations§
§impl Clone for MessageKind
impl Clone for MessageKind
§fn clone(&self) -> MessageKind
fn clone(&self) -> MessageKind
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 more§impl Debug for MessageKind
impl Debug for MessageKind
§impl Default for MessageKind
impl Default for MessageKind
§fn default() -> MessageKind
fn default() -> MessageKind
Returns the “default value” for a type. Read more
§impl Hash for MessageKind
impl Hash for MessageKind
§impl Ord for MessageKind
impl Ord for MessageKind
§impl PartialEq for MessageKind
impl PartialEq for MessageKind
§impl PartialOrd for MessageKind
impl PartialOrd for MessageKind
impl Copy for MessageKind
impl Eq for MessageKind
impl StructuralPartialEq for MessageKind
Auto Trait Implementations§
impl Freeze for MessageKind
impl RefUnwindSafe for MessageKind
impl Send for MessageKind
impl Sync for MessageKind
impl Unpin for MessageKind
impl UnsafeUnpin for MessageKind
impl UnwindSafe for MessageKind
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