#[non_exhaustive]pub enum AttachmentBody {
Bytes(Vec<u8>),
Reference(AttachmentReference),
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Bytes(Vec<u8>)
Reference(AttachmentReference)
Trait Implementations§
Source§impl<'arbitrary> Arbitrary<'arbitrary> for AttachmentBody
impl<'arbitrary> Arbitrary<'arbitrary> for AttachmentBody
Source§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self from the given unstructured data. Read moreSource§fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self from the entirety of the given
unstructured data. Read moreSource§fn size_hint(depth: usize) -> (usize, Option<usize>)
fn size_hint(depth: usize) -> (usize, Option<usize>)
Get a size hint for how many bytes out of an
Unstructured this type
needs to construct itself. Read moreSource§fn try_size_hint(
depth: usize,
) -> Result<(usize, Option<usize>), MaxRecursionReached>
fn try_size_hint( depth: usize, ) -> Result<(usize, Option<usize>), MaxRecursionReached>
Get a size hint for how many bytes out of an
Unstructured this type
needs to construct itself. Read moreSource§impl Clone for AttachmentBody
impl Clone for AttachmentBody
Source§fn clone(&self) -> AttachmentBody
fn clone(&self) -> AttachmentBody
Returns a duplicate of the value. Read more
1.0.0 · 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 AttachmentBody
impl Debug for AttachmentBody
Source§impl<'de> Deserialize<'de> for AttachmentBody
Available on crate feature serde only.
impl<'de> Deserialize<'de> for AttachmentBody
Available on crate feature
serde only.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
Source§impl JsonSchema for AttachmentBody
Available on crate feature schemars only.
impl JsonSchema for AttachmentBody
Available on crate feature
schemars only.Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(_generator: &mut SchemaGenerator) -> Schema
fn json_schema(_generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for AttachmentBody
impl PartialEq for AttachmentBody
Source§impl Serialize for AttachmentBody
Available on crate feature serde only.
impl Serialize for AttachmentBody
Available on crate feature
serde only.impl Eq for AttachmentBody
impl StructuralPartialEq for AttachmentBody
Auto Trait Implementations§
impl Freeze for AttachmentBody
impl RefUnwindSafe for AttachmentBody
impl Send for AttachmentBody
impl Sync for AttachmentBody
impl Unpin for AttachmentBody
impl UnsafeUnpin for AttachmentBody
impl UnwindSafe for AttachmentBody
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