pub struct RecommendedTopicDTO {
pub topic: UserSubjectInfoDTO,
pub reason: String,
}Expand description
GET /api/v1/topic-recommendations:主题列表项额外带 reason。
Fields§
§topic: UserSubjectInfoDTO§reason: String推荐原因,如 PINNED / TRENDING。
Trait Implementations§
Source§impl Clone for RecommendedTopicDTO
impl Clone for RecommendedTopicDTO
Source§impl Debug for RecommendedTopicDTO
impl Debug for RecommendedTopicDTO
Source§impl<'de> Deserialize<'de> for RecommendedTopicDTO
impl<'de> Deserialize<'de> for RecommendedTopicDTO
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 RecommendedTopicDTO
impl RefUnwindSafe for RecommendedTopicDTO
impl Send for RecommendedTopicDTO
impl Sync for RecommendedTopicDTO
impl Unpin for RecommendedTopicDTO
impl UnsafeUnpin for RecommendedTopicDTO
impl UnwindSafe for RecommendedTopicDTO
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