pub struct CommentItem {
pub id: Option<String>,
pub content: Option<String>,
pub creator: Option<CommentCreator>,
pub reply_to_comment_id: Option<String>,
pub created_at: Option<String>,
pub updated_at: Option<String>,
pub resource_type: Option<String>,
pub resource_id: Option<String>,
}Expand description
评论详情。
Fields§
§id: Option<String>评论 ID。
content: Option<String>评论内容。
creator: Option<CommentCreator>评论创建者。
reply_to_comment_id: Option<String>被回复评论的 ID。
created_at: Option<String>创建时间戳(毫秒)。
updated_at: Option<String>更新时间戳(毫秒)。
resource_type: Option<String>资源类型。
resource_id: Option<String>资源 ID。
Trait Implementations§
Source§impl Clone for CommentItem
impl Clone for CommentItem
Source§fn clone(&self) -> CommentItem
fn clone(&self) -> CommentItem
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CommentItem
impl Debug for CommentItem
Source§impl<'de> Deserialize<'de> for CommentItem
impl<'de> Deserialize<'de> for CommentItem
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
Source§impl PartialEq for CommentItem
impl PartialEq for CommentItem
Source§impl Serialize for CommentItem
impl Serialize for CommentItem
impl StructuralPartialEq for CommentItem
Auto Trait Implementations§
impl Freeze for CommentItem
impl RefUnwindSafe for CommentItem
impl Send for CommentItem
impl Sync for CommentItem
impl Unpin for CommentItem
impl UnsafeUnpin for CommentItem
impl UnwindSafe for CommentItem
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