pub struct Comment<'a> {
pub id: u32,
pub index: u32,
pub user_name: Cow<'a, str>,
pub icon_url: Cow<'a, str>,
pub is_my_comment: bool,
pub already_liked: bool,
pub number_of_likes: u32,
pub body: Cow<'a, str>,
pub created: u32,
}Fields§
§id: u32§index: u32§user_name: Cow<'a, str>§icon_url: Cow<'a, str>§is_my_comment: bool§already_liked: bool§number_of_likes: u32§body: Cow<'a, str>§created: u32Trait Implementations§
Source§impl<'a> MessageRead<'a> for Comment<'a>
impl<'a> MessageRead<'a> for Comment<'a>
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<'a> MessageWrite for Comment<'a>
impl<'a> MessageWrite for Comment<'a>
impl<'a> StructuralPartialEq for Comment<'a>
Auto Trait Implementations§
impl<'a> Freeze for Comment<'a>
impl<'a> RefUnwindSafe for Comment<'a>
impl<'a> Send for Comment<'a>
impl<'a> Sync for Comment<'a>
impl<'a> Unpin for Comment<'a>
impl<'a> UnwindSafe for Comment<'a>
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