pub struct PatchCommentResponse {
pub comment_id: String,
pub is_solved: bool,
pub solved_time: Option<i64>,
pub solver_user_id: Option<String>,
}Expand description
解决/恢复评论响应
Fields§
§comment_id: String评论ID
is_solved: bool是否解决
solved_time: Option<i64>解决时间(毫秒时间戳)
solver_user_id: Option<String>解决者用户ID
Implementations§
Source§impl PatchCommentResponse
impl PatchCommentResponse
Sourcepub fn is_restored(&self) -> bool
pub fn is_restored(&self) -> bool
是否被恢复
Sourcepub fn has_solved_time(&self) -> bool
pub fn has_solved_time(&self) -> bool
是否有解决时间
Sourcepub fn has_solver(&self) -> bool
pub fn has_solver(&self) -> bool
是否有解决者
Sourcepub fn solved_time_formatted(&self) -> Option<String>
pub fn solved_time_formatted(&self) -> Option<String>
获取解决时间的格式化字符串
Trait Implementations§
Source§impl ApiResponseTrait for PatchCommentResponse
impl ApiResponseTrait for PatchCommentResponse
Source§fn data_format() -> ResponseFormat
fn data_format() -> ResponseFormat
是否是标准数据格式, 既是用data包裹数据
fn from_binary(_file_name: String, _body: Vec<u8>) -> Option<Self>
Source§impl Debug for PatchCommentResponse
impl Debug for PatchCommentResponse
Source§impl<'de> Deserialize<'de> for PatchCommentResponse
impl<'de> Deserialize<'de> for PatchCommentResponse
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 PatchCommentResponse
impl RefUnwindSafe for PatchCommentResponse
impl Send for PatchCommentResponse
impl Sync for PatchCommentResponse
impl Unpin for PatchCommentResponse
impl UnwindSafe for PatchCommentResponse
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