pub struct Topic {Show 14 fields
pub id: TopicId,
pub category_id: CategoryId,
pub title: String,
pub slug: String,
pub content: TopicContent,
pub author: UserId,
pub tags: Vec<Tag>,
pub status: TopicStatus,
pub topic_type: TopicType,
pub stats: TopicStats,
pub created_at: SystemTime,
pub updated_at: SystemTime,
pub closed_at: Option<SystemTime>,
pub deleted_at: Option<SystemTime>,
}Expand description
Discussion topic
Fields§
§id: TopicId§category_id: CategoryId§title: String§slug: String§content: TopicContent§status: TopicStatus§topic_type: TopicType§stats: TopicStats§created_at: SystemTime§updated_at: SystemTime§closed_at: Option<SystemTime>§deleted_at: Option<SystemTime>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Topic
impl<'de> Deserialize<'de> for Topic
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 Topic
impl RefUnwindSafe for Topic
impl Send for Topic
impl Sync for Topic
impl Unpin for Topic
impl UnwindSafe for Topic
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