pub struct FeedMessage {
pub id: String,
pub context_id: String,
pub author_did: String,
pub sequence: u64,
pub timestamp: u64,
pub key_epoch: u64,
pub published_at: String,
pub content: String,
}Expand description
A single decrypted broadcast message in a FeedResponse.
Each message has been deserialized from MessagePack (BroadcastEnvelope)
and decrypted with the epoch-matched broadcast key. The content is
base64-encoded for JSON transport.
Includes all envelope metadata fields per §5.14.5 (issue #352).
See spec section 18.11.3.
Fields§
§id: StringThe hex-encoded blob ID (SHA-256 hash) identifying this message.
context_id: StringThe context ID this message belongs to.
The DID of the author who sealed this broadcast envelope.
sequence: u64The per-author monotonic sequence number (§5.14.5).
timestamp: u64Unix timestamp in milliseconds when the message was sealed.
key_epoch: u64The broadcast key epoch used to encrypt this message.
published_at: StringISO 8601 UTC timestamp when the relay stored this blob.
content: StringBase64-encoded decrypted content.
Trait Implementations§
Source§impl Clone for FeedMessage
impl Clone for FeedMessage
Source§fn clone(&self) -> FeedMessage
fn clone(&self) -> FeedMessage
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 moreSource§impl Debug for FeedMessage
impl Debug for FeedMessage
Auto Trait Implementations§
impl Freeze for FeedMessage
impl RefUnwindSafe for FeedMessage
impl Send for FeedMessage
impl Sync for FeedMessage
impl Unpin for FeedMessage
impl UnsafeUnpin for FeedMessage
impl UnwindSafe for FeedMessage
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Declassify for T
impl<T> Declassify for T
type Declassified = T
fn declassify(self) -> T
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 moreCreates a shared type from an unshared type.