pub struct TopicAuthorDTO {
pub id: String,
pub username: String,
pub avatar: UserAvatarDTO,
pub displayed_badge: Option<DisplayedBadgeDTO>,
}Expand description
主题/楼层列表项里的作者:只含 id/username/avatar/displayedBadge,
与完整的 GetUserInformationDTO 不同。
Fields§
§id: String§username: String§avatar: UserAvatarDTO§displayed_badge: Option<DisplayedBadgeDTO>Trait Implementations§
Source§impl Clone for TopicAuthorDTO
impl Clone for TopicAuthorDTO
Source§impl Debug for TopicAuthorDTO
impl Debug for TopicAuthorDTO
Source§impl<'de> Deserialize<'de> for TopicAuthorDTO
impl<'de> Deserialize<'de> for TopicAuthorDTO
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 TopicAuthorDTO
impl RefUnwindSafe for TopicAuthorDTO
impl Send for TopicAuthorDTO
impl Sync for TopicAuthorDTO
impl Unpin for TopicAuthorDTO
impl UnsafeUnpin for TopicAuthorDTO
impl UnwindSafe for TopicAuthorDTO
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