pub enum ContentValue {
String(String),
Blocks(Vec<ContentBlock>),
}Expand description
Content can be string or array of content blocks
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for ContentValue
impl Clone for ContentValue
Source§fn clone(&self) -> ContentValue
fn clone(&self) -> ContentValue
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 moreSource§impl Debug for ContentValue
impl Debug for ContentValue
Source§impl<'de> Deserialize<'de> for ContentValue
impl<'de> Deserialize<'de> for ContentValue
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<&str> for ContentValue
impl From<&str> for ContentValue
Source§impl From<String> for ContentValue
impl From<String> for ContentValue
Auto Trait Implementations§
impl Freeze for ContentValue
impl RefUnwindSafe for ContentValue
impl Send for ContentValue
impl Sync for ContentValue
impl Unpin for ContentValue
impl UnsafeUnpin for ContentValue
impl UnwindSafe for ContentValue
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