pub enum ContentFormat {
Base64,
String,
}
Expand description
Describes the format of the content, which can be base64 or string.
Variants§
Trait Implementations§
Source§impl Clone for ContentFormat
impl Clone for ContentFormat
Source§fn clone(&self) -> ContentFormat
fn clone(&self) -> ContentFormat
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 ContentFormat
impl Debug for ContentFormat
Source§impl Default for ContentFormat
impl Default for ContentFormat
Source§fn default() -> ContentFormat
fn default() -> ContentFormat
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ContentFormat
impl<'de> Deserialize<'de> for ContentFormat
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<SourceType> for ContentFormat
impl From<SourceType> for ContentFormat
Source§fn from(source_type: SourceType) -> Self
fn from(source_type: SourceType) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ContentFormat
impl PartialEq for ContentFormat
Source§impl Serialize for ContentFormat
impl Serialize for ContentFormat
Source§impl TryFrom<ContentFormat> for SourceType
impl TryFrom<ContentFormat> for SourceType
Source§type Error = MessageError
type Error = MessageError
The type returned in the event of a conversion error.
impl StructuralPartialEq for ContentFormat
Auto Trait Implementations§
impl Freeze for ContentFormat
impl RefUnwindSafe for ContentFormat
impl Send for ContentFormat
impl Sync for ContentFormat
impl Unpin for ContentFormat
impl UnwindSafe for ContentFormat
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