#[non_exhaustive]pub enum AtomTextType {
Text,
Html,
}Expand description
Text content for <title>, <summary>, <content> per RFC 4287 §3.1.
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
Plain text. Special characters are XML-escaped.
Html
HTML payload. Treated as opaque text by this module and emitted verbatim after XML-escaping; consumers are responsible for ensuring the payload is safe.
Trait Implementations§
Source§impl Clone for AtomTextType
impl Clone for AtomTextType
Source§fn clone(&self) -> AtomTextType
fn clone(&self) -> AtomTextType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AtomTextType
Source§impl Debug for AtomTextType
impl Debug for AtomTextType
Source§impl Default for AtomTextType
impl Default for AtomTextType
Source§fn default() -> AtomTextType
fn default() -> AtomTextType
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AtomTextType
impl<'de> Deserialize<'de> for AtomTextType
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
impl Eq for AtomTextType
Source§impl Hash for AtomTextType
impl Hash for AtomTextType
Source§impl PartialEq for AtomTextType
impl PartialEq for AtomTextType
Source§fn eq(&self, other: &AtomTextType) -> bool
fn eq(&self, other: &AtomTextType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AtomTextType
impl Serialize for AtomTextType
impl StructuralPartialEq for AtomTextType
Auto Trait Implementations§
impl Freeze for AtomTextType
impl RefUnwindSafe for AtomTextType
impl Send for AtomTextType
impl Sync for AtomTextType
impl Unpin for AtomTextType
impl UnsafeUnpin for AtomTextType
impl UnwindSafe for AtomTextType
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