pub struct CommentUser {
pub id: String,
pub name: String,
pub avatar: Option<String>,
}Expand description
User who created a comment
Fields§
§id: String§name: String§avatar: Option<String>Trait Implementations§
Source§impl Clone for CommentUser
impl Clone for CommentUser
Source§fn clone(&self) -> CommentUser
fn clone(&self) -> CommentUser
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 CommentUser
impl Debug for CommentUser
Source§impl<'de> Deserialize<'de> for CommentUser
impl<'de> Deserialize<'de> for CommentUser
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 CommentUser
impl RefUnwindSafe for CommentUser
impl Send for CommentUser
impl Sync for CommentUser
impl Unpin for CommentUser
impl UnwindSafe for CommentUser
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