pub struct InboundPart {
pub region: Option<String>,
pub name: String,
pub mime_type: Option<MimeType>,
pub deliver: Option<Delivery>,
pub caption: Option<String>,
pub data: Vec<u8>,
}Expand description
Bytes a caller attached, and where they should land.
Fields§
§region: Option<String>The region to write the part to. None means wherever the text it
came with lands: the task region at spawn, the target region of a
message.
name: StringThe part’s name, usually the file name it came from.
mime_type: Option<MimeType>The type the caller declared, when it did. Sniffed otherwise.
deliver: Option<Delivery>How the part should reach a model, when the caller has a preference.
caption: Option<String>Text to write beside the part in the same entry, when the caller gave
some (an --attach with no caption writes the part alone).
data: Vec<u8>The bytes, base64 on the wire.
Implementations§
Source§impl InboundPart
impl InboundPart
Trait Implementations§
Source§impl Clone for InboundPart
impl Clone for InboundPart
Source§fn clone(&self) -> InboundPart
fn clone(&self) -> InboundPart
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 InboundPart
impl Debug for InboundPart
Source§impl Default for InboundPart
impl Default for InboundPart
Source§fn default() -> InboundPart
fn default() -> InboundPart
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for InboundPart
impl<'de> Deserialize<'de> for InboundPart
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 InboundPart
Source§impl PartialEq for InboundPart
impl PartialEq for InboundPart
Source§impl Serialize for InboundPart
impl Serialize for InboundPart
impl StructuralPartialEq for InboundPart
Auto Trait Implementations§
impl Freeze for InboundPart
impl RefUnwindSafe for InboundPart
impl Send for InboundPart
impl Sync for InboundPart
impl Unpin for InboundPart
impl UnsafeUnpin for InboundPart
impl UnwindSafe for InboundPart
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>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.