#[non_exhaustive]pub enum FieldContent {
Text(String),
Url(String),
Unknown,
}
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.
Text(String)
This field’s content should be interpreted as human-readable plaintext.
Url(String)
This field’s content should be interpreted as a URL.
Unknown
This field’s content was of an unknown format. This cannot be serialized but only exists to guarantee forward compatibility
Trait Implementations§
Source§impl Clone for FieldContent
impl Clone for FieldContent
Source§fn clone(&self) -> FieldContent
fn clone(&self) -> FieldContent
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 FieldContent
impl Debug for FieldContent
Source§impl<'de> Deserialize<'de> for FieldContent
impl<'de> Deserialize<'de> for FieldContent
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 PartialEq for FieldContent
impl PartialEq for FieldContent
Source§impl Serialize for FieldContent
impl Serialize for FieldContent
impl Eq for FieldContent
impl StructuralPartialEq for FieldContent
Auto Trait Implementations§
impl Freeze for FieldContent
impl RefUnwindSafe for FieldContent
impl Send for FieldContent
impl Sync for FieldContent
impl Unpin for FieldContent
impl UnwindSafe for FieldContent
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