pub struct CreatedComment {
pub comment_id: String,
pub user_id: String,
pub create_time: i64,
pub update_time: i64,
pub is_solved: bool,
pub is_whole: Option<bool>,
}Expand description
创建的评论信息
Fields§
§comment_id: String评论ID
user_id: String用户ID
create_time: i64创建时间(毫秒时间戳)
update_time: i64更新时间(毫秒时间戳)
is_solved: bool是否解决
is_whole: Option<bool>是否是全文评论
Implementations§
Source§impl CreatedComment
impl CreatedComment
Sourcepub fn is_whole_comment(&self) -> bool
pub fn is_whole_comment(&self) -> bool
是否为全文评论
Sourcepub fn created_at_formatted(&self) -> String
pub fn created_at_formatted(&self) -> String
获取创建时间的格式化字符串
Trait Implementations§
Source§impl Debug for CreatedComment
impl Debug for CreatedComment
Source§impl<'de> Deserialize<'de> for CreatedComment
impl<'de> Deserialize<'de> for CreatedComment
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 CreatedComment
impl RefUnwindSafe for CreatedComment
impl Send for CreatedComment
impl Sync for CreatedComment
impl Unpin for CreatedComment
impl UnwindSafe for CreatedComment
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