mirror of
https://github.com/lifegpc/pixiv_downloader.git
synced 2026-07-08 01:32:41 +08:00
Update
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
use super::check::CheckUnkown;
|
||||
use crate::parser::json::parse_u64;
|
||||
use json::JsonValue;
|
||||
use proc_macros::check_json_keys;
|
||||
use std::fmt::Debug;
|
||||
|
||||
pub struct FanboxComment {
|
||||
@@ -83,6 +85,13 @@ impl FanboxComment {
|
||||
}
|
||||
}
|
||||
|
||||
impl CheckUnkown for FanboxComment {
|
||||
fn check_unknown(&self) -> Result<(), super::error::FanboxAPIError> {
|
||||
check_json_keys!("id"+, "body"+, "createdDatetime"+, "isLiked"+, "isOwn"+, "likeCount"+, "parentCommentId", "replies", "rootCommentId", "user": ["userId", "name", "iconUrl"]);
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
impl Debug for FanboxComment {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
f.debug_struct("FanboxComment")
|
||||
|
||||
Reference in New Issue
Block a user