#[non_exhaustive]pub enum MediaBlock {
Text(String),
Image(ImageAsset),
}Expand description
One ordered block of a multimodal source document.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Text(String)
A text block (may be split into several chunks).
Image(ImageAsset)
An image asset with an optional caption.
Trait Implementations§
Source§impl Clone for MediaBlock
impl Clone for MediaBlock
Source§fn clone(&self) -> MediaBlock
fn clone(&self) -> MediaBlock
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 moreAuto Trait Implementations§
impl Freeze for MediaBlock
impl RefUnwindSafe for MediaBlock
impl Send for MediaBlock
impl Sync for MediaBlock
impl Unpin for MediaBlock
impl UnsafeUnpin for MediaBlock
impl UnwindSafe for MediaBlock
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