pub struct OpenedStream {
pub rumor: UnsignedEvent,
pub rumor_id: EventId,
pub author: PublicKey,
pub seal_form: SealForm,
pub seal: Event,
pub wrapper_id: EventId,
pub at_ms: u64,
}Expand description
A fully verified, opened stream event.
Fields§
§rumor: UnsignedEventThe unsigned rumor, id-verified against its serialized form.
rumor_id: EventIdThe rumor’s verified id (content-derived — the protocol’s message id).
The real author: the seal’s Schnorr-verified pubkey (== rumor pubkey).
seal_form: SealFormWhich seal form carried it.
seal: EventThe verified seal, retained so a compaction can re-wrap a plaintext seal byte-verbatim (its content string carries the signed rumor bytes).
wrapper_id: EventIdThe outer wrap’s id (per-transport identity; differs per re-wrap).
at_ms: u64True event time in ms: created_at * 1000 + ms-tag (tag absent = 0).
Trait Implementations§
Source§impl Clone for OpenedStream
impl Clone for OpenedStream
Source§fn clone(&self) -> OpenedStream
fn clone(&self) -> OpenedStream
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 OpenedStream
impl RefUnwindSafe for OpenedStream
impl Send for OpenedStream
impl Sync for OpenedStream
impl Unpin for OpenedStream
impl UnsafeUnpin for OpenedStream
impl UnwindSafe for OpenedStream
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