Struct rosu_v2::model::forum::ForumPosts
source · pub struct ForumPosts {
pub cursor: Option<Cursor>,
pub posts: Vec<ForumPost>,
pub search: ForumPostsSearch,
pub topic: ForumTopic,
}
Fields§
§cursor: Option<Cursor>
§posts: Vec<ForumPost>
§search: ForumPostsSearch
§topic: ForumTopic
Implementations§
source§impl ForumPosts
impl ForumPosts
sourcepub fn has_more(&self) -> bool
pub fn has_more(&self) -> bool
Checks whether the cursor field is Some
which in turn
can be used to retrieve the next set of posts.
The next set can then be retrieved by providing this
Cursor
to GetForumPosts::cursor
.
Be sure all other parameters stay the same.
Trait Implementations§
source§impl Clone for ForumPosts
impl Clone for ForumPosts
source§fn clone(&self) -> ForumPosts
fn clone(&self) -> ForumPosts
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 ForumPosts
impl Debug for ForumPosts
source§impl<'de> Deserialize<'de> for ForumPosts
impl<'de> Deserialize<'de> for ForumPosts
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<ForumPosts> for ForumPosts
impl PartialEq<ForumPosts> for ForumPosts
source§fn eq(&self, other: &ForumPosts) -> bool
fn eq(&self, other: &ForumPosts) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ForumPosts
impl StructuralEq for ForumPosts
impl StructuralPartialEq for ForumPosts
Auto Trait Implementations§
impl RefUnwindSafe for ForumPosts
impl Send for ForumPosts
impl Sync for ForumPosts
impl Unpin for ForumPosts
impl UnwindSafe for ForumPosts
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.