pub enum PartContent {
Text(String),
Raw(Vec<u8>),
Url(String),
Data(Value),
}Expand description
The content of a part — a discriminated union.
Variants§
Trait Implementations§
Source§impl Clone for PartContent
impl Clone for PartContent
Source§fn clone(&self) -> PartContent
fn clone(&self) -> PartContent
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 PartContent
impl Debug for PartContent
Source§impl PartialEq for PartContent
impl PartialEq for PartContent
impl StructuralPartialEq for PartContent
Auto Trait Implementations§
impl Freeze for PartContent
impl RefUnwindSafe for PartContent
impl Send for PartContent
impl Sync for PartContent
impl Unpin for PartContent
impl UnsafeUnpin for PartContent
impl UnwindSafe for PartContent
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