pub struct FeedResponse {
pub context_id: String,
pub author_did: String,
pub messages: Vec<FeedMessage>,
}Expand description
JSON response body for GET /scp/broadcast/<routing_id>/feed.
Contains the context ID, the primary author DID (from the first message in the response, or the projected context’s author), and an array of decrypted broadcast messages.
See spec section 18.11.3.
Fields§
§context_id: StringThe hex-encoded context ID that this feed belongs to.
The DID of the broadcast context’s primary author.
Derived from the first message in the response. If no messages are present, this is an empty string.
messages: Vec<FeedMessage>Array of decrypted broadcast messages, ordered oldest-first.
Trait Implementations§
Source§impl Clone for FeedResponse
impl Clone for FeedResponse
Source§fn clone(&self) -> FeedResponse
fn clone(&self) -> FeedResponse
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 FeedResponse
impl Debug for FeedResponse
Auto Trait Implementations§
impl Freeze for FeedResponse
impl RefUnwindSafe for FeedResponse
impl Send for FeedResponse
impl Sync for FeedResponse
impl Unpin for FeedResponse
impl UnsafeUnpin for FeedResponse
impl UnwindSafe for FeedResponse
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.