pub struct ProtocolPublish {
pub authored_at_secs: Option<u64>,
pub event: Event,
pub chat_id: String,
pub inner_event_id: Option<String>,
pub carrier: ProtocolCarrier,
}Fields§
Original plaintext timestamp, preserved when sealing happens on a later retry.
event: Event§chat_id: String§inner_event_id: Option<String>§carrier: ProtocolCarrierImplementations§
Source§impl ProtocolPublish
impl ProtocolPublish
Sourcepub fn is_publishable(&self) -> bool
pub fn is_publishable(&self) -> bool
Whether any network carrier may take this event. Message events need the engine’s own pairwise marker and must not name a recipient, which also retires envelopes sealed by versions that still tagged one.
Trait Implementations§
Source§impl Clone for ProtocolPublish
impl Clone for ProtocolPublish
Source§impl Debug for ProtocolPublish
impl Debug for ProtocolPublish
Source§impl<'de> Deserialize<'de> for ProtocolPublish
impl<'de> Deserialize<'de> for ProtocolPublish
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
Auto Trait Implementations§
impl !Freeze for ProtocolPublish
impl Forget for ProtocolPublish
impl Move for ProtocolPublish
impl RefUnwindSafe for ProtocolPublish
impl Send for ProtocolPublish
impl Sync for ProtocolPublish
impl Unpin for ProtocolPublish
impl UnsafeUnpin for ProtocolPublish
impl UnwindSafe for ProtocolPublish
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