pub enum ContentContainer {
Text {
typ: String,
text: String,
},
Image {
typ: String,
image_url: ImageUrl,
},
}
Variants§
Trait Implementations§
Source§impl Clone for ContentContainer
impl Clone for ContentContainer
Source§fn clone(&self) -> ContentContainer
fn clone(&self) -> ContentContainer
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 ContentContainer
impl Debug for ContentContainer
Source§impl<'de> Deserialize<'de> for ContentContainer
impl<'de> Deserialize<'de> for ContentContainer
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<ImageUrl> for ContentContainer
impl From<ImageUrl> for ContentContainer
Source§impl From<String> for ContentContainer
impl From<String> for ContentContainer
Auto Trait Implementations§
impl Freeze for ContentContainer
impl RefUnwindSafe for ContentContainer
impl Send for ContentContainer
impl Sync for ContentContainer
impl Unpin for ContentContainer
impl UnwindSafe for ContentContainer
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