pub struct Comment {Show 26 fields
pub url: String,
pub id: i32,
pub author: Option<i32>,
pub author_name: Option<String>,
pub author_lvl: Option<Value>,
pub author_supporter_lvl: i32,
pub is_deactivated: bool,
pub is_moderator: bool,
pub is_admin: bool,
pub question: String,
pub comment_html: String,
pub comment_text: String,
pub created_time: String,
pub prediction_value: Option<HashMap<String, Value>>,
pub submit_type: Option<SubmitTypeEnum>,
pub preview: Option<bool>,
pub parent: Option<Option<i32>>,
pub num_children: i32,
pub num_likes: Option<i32>,
pub deleted: bool,
pub parent_author: Option<String>,
pub user_like: i32,
pub user_like_at: String,
pub latest_prediction: Option<Option<HashMap<String, Value>>>,
pub include_latest_prediction: Option<bool>,
pub edits: HashMap<String, Value>,
}Fields§
§url: String§id: i32§is_deactivated: bool§is_moderator: bool§is_admin: bool§question: String§comment_html: String§comment_text: String§created_time: String§prediction_value: Option<HashMap<String, Value>>§submit_type: Option<SubmitTypeEnum>§preview: Option<bool>§parent: Option<Option<i32>>§num_children: i32§num_likes: Option<i32>§deleted: bool§user_like: i32§user_like_at: String§latest_prediction: Option<Option<HashMap<String, Value>>>§include_latest_prediction: Option<bool>§edits: HashMap<String, Value>Implementations§
Source§impl Comment
impl Comment
pub fn new( url: String, id: i32, author: Option<i32>, author_name: Option<String>, author_lvl: Option<Value>, author_supporter_lvl: i32, is_deactivated: bool, is_moderator: bool, is_admin: bool, question: String, comment_html: String, comment_text: String, created_time: String, prediction_value: Option<HashMap<String, Value>>, num_children: i32, num_likes: Option<i32>, deleted: bool, parent_author: Option<String>, user_like: i32, user_like_at: String, edits: HashMap<String, Value>, ) -> Comment
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Comment
impl<'de> Deserialize<'de> for Comment
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
impl StructuralPartialEq for Comment
Auto Trait Implementations§
impl Freeze for Comment
impl RefUnwindSafe for Comment
impl Send for Comment
impl Sync for Comment
impl Unpin for Comment
impl UnwindSafe for Comment
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