Enum ftd::TextFormat
source · [−]pub enum TextFormat {
Markdown,
Code {
lang: String,
},
Text,
}
Variants
Markdown
Code
Fields
lang: String
Text
Implementations
Trait Implementations
sourceimpl Clone for TextFormat
impl Clone for TextFormat
sourcefn clone(&self) -> TextFormat
fn clone(&self) -> TextFormat
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for TextFormat
impl Debug for TextFormat
sourceimpl Default for TextFormat
impl Default for TextFormat
sourcefn default() -> TextFormat
fn default() -> TextFormat
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for TextFormat
impl<'de> Deserialize<'de> for TextFormat
sourcefn 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
sourceimpl PartialEq<TextFormat> for TextFormat
impl PartialEq<TextFormat> for TextFormat
sourcefn eq(&self, other: &TextFormat) -> bool
fn eq(&self, other: &TextFormat) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourceimpl Serialize for TextFormat
impl Serialize for TextFormat
impl StructuralPartialEq for TextFormat
Auto Trait Implementations
impl RefUnwindSafe for TextFormat
impl Send for TextFormat
impl Sync for TextFormat
impl Unpin for TextFormat
impl UnwindSafe for TextFormat
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more