pub struct CommentListView {
pub comments: Vec<Comment>,
pub if_set_user_name: bool,
}
Fields§
§comments: Vec<Comment>
§if_set_user_name: bool
Trait Implementations§
Source§impl Clone for CommentListView
impl Clone for CommentListView
Source§fn clone(&self) -> CommentListView
fn clone(&self) -> CommentListView
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 CommentListView
impl Debug for CommentListView
Source§impl Default for CommentListView
impl Default for CommentListView
Source§fn default() -> CommentListView
fn default() -> CommentListView
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CommentListView
impl<'de> Deserialize<'de> for CommentListView
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<'a> MessageRead<'a> for CommentListView
impl<'a> MessageRead<'a> for CommentListView
Source§fn from_reader(r: &mut BytesReader, bytes: &'a [u8]) -> Result<Self>
fn from_reader(r: &mut BytesReader, bytes: &'a [u8]) -> Result<Self>
Constructs an instance of
Self
by reading from the given bytes
via the given reader. Read moreSource§impl MessageWrite for CommentListView
impl MessageWrite for CommentListView
Source§impl PartialEq for CommentListView
impl PartialEq for CommentListView
Source§impl Serialize for CommentListView
impl Serialize for CommentListView
impl StructuralPartialEq for CommentListView
Auto Trait Implementations§
impl Freeze for CommentListView
impl RefUnwindSafe for CommentListView
impl Send for CommentListView
impl Sync for CommentListView
impl Unpin for CommentListView
impl UnwindSafe for CommentListView
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