pub enum MessageMeta {
None,
Basic {
content_type: Option<String>,
},
AttachmentInit(AttachmentMeta),
AttachmentChunk(AttachmentChunkMeta),
AttachmentEnd {
attachment_id: Uuid,
sha256: Option<[u8; 32]>,
total_size: u64,
chunk_count: u32,
},
AttachmentAbort {
attachment_id: Uuid,
reason: Option<String>,
},
AttachmentAck(AttachmentAckMeta),
}Variants§
None
Basic
AttachmentInit(AttachmentMeta)
AttachmentChunk(AttachmentChunkMeta)
AttachmentEnd
AttachmentAbort
AttachmentAck(AttachmentAckMeta)
Trait Implementations§
Source§impl Clone for MessageMeta
impl Clone for MessageMeta
Source§fn clone(&self) -> MessageMeta
fn clone(&self) -> MessageMeta
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MessageMeta
impl Debug for MessageMeta
Source§impl Default for MessageMeta
impl Default for MessageMeta
Source§impl<'de> Deserialize<'de> for MessageMeta
impl<'de> Deserialize<'de> for MessageMeta
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 PartialEq for MessageMeta
impl PartialEq for MessageMeta
Source§impl Serialize for MessageMeta
impl Serialize for MessageMeta
impl Eq for MessageMeta
impl StructuralPartialEq for MessageMeta
Auto Trait Implementations§
impl Freeze for MessageMeta
impl RefUnwindSafe for MessageMeta
impl Send for MessageMeta
impl Sync for MessageMeta
impl Unpin for MessageMeta
impl UnwindSafe for MessageMeta
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)