pub struct CommentPost {
pub articleId: String,
pub isAnonymous: bool,
pub isVisible: bool,
pub content: String,
pub replyId: String,
}Expand description
评论发布
Fields§
§articleId: String文章 Id
isAnonymous: bool是否匿名评论
isVisible: bool评论是否楼主可见
content: String评论内容
replyId: String回复评论 Id
Implementations§
Trait Implementations§
Source§impl Clone for CommentPost
impl Clone for CommentPost
Source§fn clone(&self) -> CommentPost
fn clone(&self) -> CommentPost
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 CommentPost
impl Debug for CommentPost
Source§impl<'de> Deserialize<'de> for CommentPost
impl<'de> Deserialize<'de> for CommentPost
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 CommentPost
impl RefUnwindSafe for CommentPost
impl Send for CommentPost
impl Sync for CommentPost
impl Unpin for CommentPost
impl UnsafeUnpin for CommentPost
impl UnwindSafe for CommentPost
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