pub struct ImageAttachment {
pub id: u64,
pub data: Arc<[u8]>,
pub mime_type: String,
pub display_name: String,
}Expand description
An image kept in the chat draft until the user explicitly submits it. Shared bytes let the UI retain a rejected draft without copying its payload.
Fields§
§id: u64§data: Arc<[u8]>§mime_type: String§display_name: StringTrait Implementations§
Source§impl Clone for ImageAttachment
impl Clone for ImageAttachment
Source§impl Debug for ImageAttachment
impl Debug for ImageAttachment
impl Eq for ImageAttachment
Source§impl PartialEq for ImageAttachment
impl PartialEq for ImageAttachment
impl StructuralPartialEq for ImageAttachment
Auto Trait Implementations§
impl Forget for ImageAttachment
impl Freeze for ImageAttachment
impl Move for ImageAttachment
impl RefUnwindSafe for ImageAttachment
impl Send for ImageAttachment
impl Sync for ImageAttachment
impl Unpin for ImageAttachment
impl UnsafeUnpin for ImageAttachmentwhere
*const ArcInner<[u8]> is !null: UnsafeUnpin,
PhantomData<ArcInner<[u8]>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
impl UnwindSafe for ImageAttachment
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