Struct rings_core::message::MessageVerification
source · pub struct MessageVerification {
pub session: Session,
pub ttl_ms: u64,
pub ts_ms: u128,
pub sig: Vec<u8>,
}Expand description
Message Verification is based on session, and sig. it also included ttl time and created ts.
Fields§
§session: Session§ttl_ms: u64The time to live of the message in milliseconds.
ts_ms: u128The timestamp of the message in milliseconds.
sig: Vec<u8>Implementations§
Trait Implementations§
source§impl Clone for MessageVerification
impl Clone for MessageVerification
source§fn clone(&self) -> MessageVerification
fn clone(&self) -> MessageVerification
Returns a copy 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 moresource§impl Debug for MessageVerification
impl Debug for MessageVerification
source§impl<'de> Deserialize<'de> for MessageVerification
impl<'de> Deserialize<'de> for MessageVerification
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 MessageVerification
impl PartialEq for MessageVerification
source§fn eq(&self, other: &MessageVerification) -> bool
fn eq(&self, other: &MessageVerification) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for MessageVerification
impl Serialize for MessageVerification
impl Eq for MessageVerification
impl StructuralPartialEq for MessageVerification
Auto Trait Implementations§
impl Freeze for MessageVerification
impl RefUnwindSafe for MessageVerification
impl Send for MessageVerification
impl Sync for MessageVerification
impl Unpin for MessageVerification
impl UnwindSafe for MessageVerification
Blanket Implementations§
source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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