pub struct MessageDeliveryV1 {Show 14 fields
pub gid: String,
pub seq: u64,
pub network: NetworkV1,
pub message_type: MessageType,
pub from: SenderV1,
pub to: Option<String>,
pub thread_id: String,
pub reply_to: Option<String>,
pub deadline: Option<UtcTimestamp>,
pub body: Option<MessageBodyV1>,
pub sealed: Option<SealedBlobV1>,
pub trust: MessageTrust,
pub server_time: UtcTimestamp,
pub expires_at: UtcTimestamp,
}Expand description
message.deliver (service → client).
Fields§
§gid: StringGlobal message id.
seq: u64Position on the channel (org) or swarm, gap-free.
network: NetworkV1§message_type: MessageType§from: SenderV1§to: Option<String>§thread_id: StringThe first message of the thread (its own gid for a first message).
reply_to: Option<String>§deadline: Option<UtcTimestamp>§body: Option<MessageBodyV1>§sealed: Option<SealedBlobV1>§trust: MessageTrust§server_time: UtcTimestamp§expires_at: UtcTimestampImplementations§
Source§impl MessageDeliveryV1
impl MessageDeliveryV1
pub fn validate(&self) -> Result<(), ValidationError>
Trait Implementations§
Source§impl Clone for MessageDeliveryV1
impl Clone for MessageDeliveryV1
Source§impl Debug for MessageDeliveryV1
impl Debug for MessageDeliveryV1
Source§impl<'de> Deserialize<'de> for MessageDeliveryV1
impl<'de> Deserialize<'de> for MessageDeliveryV1
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 MessageDeliveryV1
Source§impl PartialEq for MessageDeliveryV1
impl PartialEq for MessageDeliveryV1
Source§impl Serialize for MessageDeliveryV1
impl Serialize for MessageDeliveryV1
impl StructuralPartialEq for MessageDeliveryV1
Auto Trait Implementations§
impl Freeze for MessageDeliveryV1
impl RefUnwindSafe for MessageDeliveryV1
impl Send for MessageDeliveryV1
impl Sync for MessageDeliveryV1
impl Unpin for MessageDeliveryV1
impl UnsafeUnpin for MessageDeliveryV1
impl UnwindSafe for MessageDeliveryV1
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