pub struct PostStream {
pub posts: Vec<Post>,
pub stream: Vec<u64>,
}Expand description
Topic post stream.
Fields§
§posts: Vec<Post>§stream: Vec<u64>Flat array of every post ID in the topic. Discourse includes this on the first-page response only. Used to paginate the rest of the thread via the batch-fetch endpoint.
Trait Implementations§
Source§impl Debug for PostStream
impl Debug for PostStream
Source§impl Default for PostStream
impl Default for PostStream
Source§fn default() -> PostStream
fn default() -> PostStream
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PostStream
impl<'de> Deserialize<'de> for PostStream
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
Auto Trait Implementations§
impl Freeze for PostStream
impl RefUnwindSafe for PostStream
impl Send for PostStream
impl Sync for PostStream
impl Unpin for PostStream
impl UnsafeUnpin for PostStream
impl UnwindSafe for PostStream
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