pub struct UpdatedReply {
pub reply_id: String,
pub user_id: String,
pub create_time: i64,
pub update_time: i64,
pub content: ReplyContent,
}Expand description
更新后的回复信息
Fields§
§reply_id: String回复ID
user_id: String用户ID
create_time: i64创建时间(毫秒时间戳)
update_time: i64更新时间(毫秒时间戳)
content: ReplyContent回复内容
Implementations§
Source§impl UpdatedReply
impl UpdatedReply
Sourcepub fn get_text_content(&self) -> String
pub fn get_text_content(&self) -> String
获取回复的文本内容
Sourcepub fn is_updated(&self) -> bool
pub fn is_updated(&self) -> bool
是否已更新
Sourcepub fn time_since_creation(&self) -> i64
pub fn time_since_creation(&self) -> i64
获取更新时间与创建时间的差值(毫秒)
Sourcepub fn updated_at_formatted(&self) -> String
pub fn updated_at_formatted(&self) -> String
获取更新时间的格式化字符串
Trait Implementations§
Source§impl Debug for UpdatedReply
impl Debug for UpdatedReply
Source§impl<'de> Deserialize<'de> for UpdatedReply
impl<'de> Deserialize<'de> for UpdatedReply
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 UpdatedReply
impl RefUnwindSafe for UpdatedReply
impl Send for UpdatedReply
impl Sync for UpdatedReply
impl Unpin for UpdatedReply
impl UnwindSafe for UpdatedReply
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