pub struct AttachmentContent {
pub media_type: String,
pub bytes: Vec<u8>,
}Expand description
The bytes of one attachment, as the application holds them.
Fields§
§media_type: StringIANA media type of what bytes are.
Stated again rather than taken from the AttachmentRef, because the
application is the one that knows: a file uploaded as
application/octet-stream may be a PNG, and only whoever stored it can
say so.
bytes: Vec<u8>The raw bytes. Encoding for a provider happens downstream.
Trait Implementations§
Source§impl Clone for AttachmentContent
impl Clone for AttachmentContent
Source§impl Debug for AttachmentContent
impl Debug for AttachmentContent
impl Eq for AttachmentContent
Source§impl PartialEq for AttachmentContent
impl PartialEq for AttachmentContent
impl StructuralPartialEq for AttachmentContent
Auto Trait Implementations§
impl Freeze for AttachmentContent
impl RefUnwindSafe for AttachmentContent
impl Send for AttachmentContent
impl Sync for AttachmentContent
impl Unpin for AttachmentContent
impl UnsafeUnpin for AttachmentContent
impl UnwindSafe for AttachmentContent
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.