pub enum MessageAttachmentKind {
Simple,
EmbeddedResource,
Resource,
Annotations,
}Expand description
Discriminant for {@link MessageAttachment} variants.
Variants§
Simple
A simple, opaque attachment whose representation is described by the producer.
EmbeddedResource
An attachment whose data is embedded inline as a base64 string.
Resource
An attachment that references a resource by URI.
Annotations
An attachment that references annotations on an annotations channel.
Trait Implementations§
Source§impl Clone for MessageAttachmentKind
impl Clone for MessageAttachmentKind
Source§fn clone(&self) -> MessageAttachmentKind
fn clone(&self) -> MessageAttachmentKind
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 moreimpl Copy for MessageAttachmentKind
Source§impl Debug for MessageAttachmentKind
impl Debug for MessageAttachmentKind
Source§impl<'de> Deserialize<'de> for MessageAttachmentKind
impl<'de> Deserialize<'de> for MessageAttachmentKind
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 MessageAttachmentKind
Source§impl Hash for MessageAttachmentKind
impl Hash for MessageAttachmentKind
Source§impl PartialEq for MessageAttachmentKind
impl PartialEq for MessageAttachmentKind
Source§fn eq(&self, other: &MessageAttachmentKind) -> bool
fn eq(&self, other: &MessageAttachmentKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MessageAttachmentKind
impl Serialize for MessageAttachmentKind
impl StructuralPartialEq for MessageAttachmentKind
Auto Trait Implementations§
impl Freeze for MessageAttachmentKind
impl RefUnwindSafe for MessageAttachmentKind
impl Send for MessageAttachmentKind
impl Sync for MessageAttachmentKind
impl Unpin for MessageAttachmentKind
impl UnsafeUnpin for MessageAttachmentKind
impl UnwindSafe for MessageAttachmentKind
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