pub struct UnwrappedMessage {
pub message: Message,
pub signature: Option<Signature>,
pub sender: PublicKey,
pub identity: PublicKey,
pub created_at: Timestamp,
}Expand description
A Mostro message recovered from an incoming GiftWrap, plus metadata from the outer envelopes.
Fields§
§message: MessageThe logical Mostro message carried inside the rumor.
signature: Option<Signature>Signature of the JSON-serialized Message, produced with the sender’s
trade keys. Present only when the sender set signed = true.
sender: PublicKeyRumor author — the sender’s trade public key.
identity: PublicKeySeal signer — the sender’s long-lived identity public key. In
full-privacy mode (where the client reuses its trade key as identity)
this equals sender.
created_at: TimestampRumor created_at timestamp.
Trait Implementations§
Source§impl Clone for UnwrappedMessage
impl Clone for UnwrappedMessage
Source§fn clone(&self) -> UnwrappedMessage
fn clone(&self) -> UnwrappedMessage
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 moreAuto Trait Implementations§
impl Freeze for UnwrappedMessage
impl RefUnwindSafe for UnwrappedMessage
impl Send for UnwrappedMessage
impl Sync for UnwrappedMessage
impl Unpin for UnwrappedMessage
impl UnsafeUnpin for UnwrappedMessage
impl UnwindSafe for UnwrappedMessage
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more