pub enum ContextElement {
Text(TextObject),
Image {
type_: String,
image_url: String,
alt_text: String,
},
}Expand description
Context element.
Variants§
Trait Implementations§
Source§impl Clone for ContextElement
impl Clone for ContextElement
Source§fn clone(&self) -> ContextElement
fn clone(&self) -> ContextElement
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 ContextElement
impl Debug for ContextElement
Auto Trait Implementations§
impl Freeze for ContextElement
impl RefUnwindSafe for ContextElement
impl Send for ContextElement
impl Sync for ContextElement
impl Unpin for ContextElement
impl UnwindSafe for ContextElement
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