pub struct CreateTopicDTO {
pub title: String,
pub markdown: String,
pub kind: String,
pub tag_ids: Vec<String>,
}Expand description
发布主题首楼(POST /api/v1/posts)。
Fields§
§title: String§markdown: String§kind: String§tag_ids: Vec<String>Trait Implementations§
Source§impl Clone for CreateTopicDTO
impl Clone for CreateTopicDTO
Source§impl Debug for CreateTopicDTO
impl Debug for CreateTopicDTO
Source§impl<'de> Deserialize<'de> for CreateTopicDTO
impl<'de> Deserialize<'de> for CreateTopicDTO
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 CreateTopicDTO
impl RefUnwindSafe for CreateTopicDTO
impl Send for CreateTopicDTO
impl Sync for CreateTopicDTO
impl Unpin for CreateTopicDTO
impl UnsafeUnpin for CreateTopicDTO
impl UnwindSafe for CreateTopicDTO
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