pub struct DeletedReply {
pub reply_id: String,
pub comment_id: String,
pub delete_time: Option<i64>,
pub deleter_user_id: Option<String>,
}Expand description
删除的回复信息
Fields§
§reply_id: String回复ID
comment_id: String评论ID
delete_time: Option<i64>删除时间(毫秒时间戳)
deleter_user_id: Option<String>删除者用户ID
Implementations§
Source§impl DeletedReply
impl DeletedReply
Sourcepub fn has_delete_time(&self) -> bool
pub fn has_delete_time(&self) -> bool
是否有删除时间
Sourcepub fn has_deleter(&self) -> bool
pub fn has_deleter(&self) -> bool
是否有删除者信息
Sourcepub fn delete_time_formatted(&self) -> Option<String>
pub fn delete_time_formatted(&self) -> Option<String>
获取删除时间的格式化字符串
Trait Implementations§
Source§impl Debug for DeletedReply
impl Debug for DeletedReply
Source§impl<'de> Deserialize<'de> for DeletedReply
impl<'de> Deserialize<'de> for DeletedReply
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 DeletedReply
impl RefUnwindSafe for DeletedReply
impl Send for DeletedReply
impl Sync for DeletedReply
impl Unpin for DeletedReply
impl UnwindSafe for DeletedReply
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