pub struct GetCommentResponse {
pub comment: Comment,
}Expand description
获取全文评论响应
Fields§
§comment: Comment评论信息
Implementations§
Source§impl GetCommentResponse
impl GetCommentResponse
Sourcepub fn comment_id(&self) -> &str
pub fn comment_id(&self) -> &str
获取评论ID
Sourcepub fn is_whole_comment(&self) -> bool
pub fn is_whole_comment(&self) -> bool
是否为全文评论
Sourcepub fn has_replies(&self) -> bool
pub fn has_replies(&self) -> bool
是否有回复
Sourcepub fn reply_count(&self) -> usize
pub fn reply_count(&self) -> usize
获取回复数量
Sourcepub fn get_text_content(&self) -> String
pub fn get_text_content(&self) -> String
获取评论的文本内容
Sourcepub fn create_time(&self) -> i64
pub fn create_time(&self) -> i64
获取创建时间
Sourcepub fn update_time(&self) -> i64
pub fn update_time(&self) -> i64
获取更新时间
Sourcepub fn solved_time(&self) -> Option<i64>
pub fn solved_time(&self) -> Option<i64>
获取解决时间
Sourcepub fn solver_user_id(&self) -> Option<&str>
pub fn solver_user_id(&self) -> Option<&str>
获取解决者用户ID
Trait Implementations§
Source§impl ApiResponseTrait for GetCommentResponse
impl ApiResponseTrait for GetCommentResponse
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 GetCommentResponse
impl Debug for GetCommentResponse
Source§impl<'de> Deserialize<'de> for GetCommentResponse
impl<'de> Deserialize<'de> for GetCommentResponse
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 GetCommentResponse
impl RefUnwindSafe for GetCommentResponse
impl Send for GetCommentResponse
impl Sync for GetCommentResponse
impl Unpin for GetCommentResponse
impl UnwindSafe for GetCommentResponse
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