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§fn clone(&self) -> ImageAttachment
fn clone(&self) -> ImageAttachment
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 moreSource§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 ImageAttachment
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.