pub enum DirectPart {
Text(String),
Image(usize),
}Variants§
Trait Implementations§
Source§impl Clone for DirectPart
impl Clone for DirectPart
Source§fn clone(&self) -> DirectPart
fn clone(&self) -> DirectPart
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 DirectPart
impl Debug for DirectPart
Source§impl<'de> Deserialize<'de> for DirectPart
impl<'de> Deserialize<'de> for DirectPart
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 DirectPart
Source§impl PartialEq for DirectPart
impl PartialEq for DirectPart
Source§fn eq(&self, other: &DirectPart) -> bool
fn eq(&self, other: &DirectPart) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for DirectPart
impl Serialize for DirectPart
impl StructuralPartialEq for DirectPart
Auto Trait Implementations§
impl Freeze for DirectPart
impl RefUnwindSafe for DirectPart
impl Send for DirectPart
impl Sync for DirectPart
impl Unpin for DirectPart
impl UnsafeUnpin for DirectPart
impl UnwindSafe for DirectPart
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