pub struct ImageAttachment {
pub data: String,
pub mime_type: String,
}Expand description
A pending image attachment: base64-encoded data and its MIME type.
Fields§
§data: String§mime_type: StringImplementations§
Source§impl ImageAttachment
impl ImageAttachment
Sourcefn source(&self, with_payload: bool) -> Value
fn source(&self, with_payload: bool) -> Value
The source object both block shapes share: the mime the row names, and the payload only where the model must receive it.
Sourcepub fn wire_block(&self) -> Value
pub fn wire_block(&self) -> Value
The content block the CLI receives, payload included.
Sourcepub fn display_block(&self) -> ContentBlock
pub fn display_block(&self) -> ContentBlock
The content block a view draws: the mime the row names and the size it prints, never the payload - a frame carrying the base64 is re-served by every read of the row.
Trait Implementations§
Source§impl Clone for ImageAttachment
impl Clone for ImageAttachment
Source§impl Debug for ImageAttachment
impl Debug for ImageAttachment
Source§impl<'de> Deserialize<'de> for ImageAttachment
impl<'de> Deserialize<'de> for ImageAttachment
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ImageAttachment
Source§impl PartialEq for ImageAttachment
impl PartialEq for ImageAttachment
Source§impl Serialize for ImageAttachment
impl Serialize for ImageAttachment
impl StructuralPartialEq for ImageAttachment
Auto Trait Implementations§
impl Freeze 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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.