pub enum Media<'a> {
Image(&'a Image, Place),
Audio(&'a Audio),
Video(&'a Video),
Document(&'a DocumentContent),
}Expand description
One media part, as ReplayTarget::encodes sees it. Raw bytes are
already base64, and an inline image already has the media type its bytes
name.
Variants§
Image(&'a Image, Place)
An image, and where it sits.
Audio(&'a Audio)
Audio in a user message.
Video(&'a Video)
Video in a user message.
Document(&'a DocumentContent)
A document in a user message.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Forget for Media<'a>
impl<'a> Freeze for Media<'a>
impl<'a> Move for Media<'a>
impl<'a> RefUnwindSafe for Media<'a>
impl<'a> Send for Media<'a>
impl<'a> Sync for Media<'a>
impl<'a> Unpin for Media<'a>
impl<'a> UnsafeUnpin for Media<'a>
impl<'a> UnwindSafe for Media<'a>
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