pub struct CreateCommentParams {Show 34 fields
pub date: Option<i64>,
pub local_date_string: Option<String>,
pub local_date_hours: Option<i32>,
pub commenter_name: String,
pub commenter_email: Option<Option<String>>,
pub commenter_link: Option<Option<String>>,
pub comment: String,
pub product_id: Option<i32>,
pub user_id: Option<Option<String>>,
pub avatar_src: Option<Option<String>>,
pub parent_id: Option<Option<String>>,
pub mentions: Option<Vec<CommentUserMentionInfo>>,
pub hash_tags: Option<Vec<CommentUserHashTagInfo>>,
pub page_title: Option<String>,
pub is_from_my_account_page: Option<bool>,
pub url: String,
pub url_id: String,
pub meta: Option<Value>,
pub moderation_group_ids: Option<Vec<String>>,
pub rating: Option<f64>,
pub from_offline_restore: Option<bool>,
pub autoplay_delay_ms: Option<i64>,
pub feedback_ids: Option<Vec<String>>,
pub question_values: Option<HashMap<String, RecordStringStringOrNumberValue>>,
pub approved: Option<bool>,
pub domain: Option<String>,
pub ip: Option<String>,
pub is_pinned: Option<bool>,
pub locale: String,
pub reviewed: Option<bool>,
pub verified: Option<bool>,
pub votes: Option<i32>,
pub votes_down: Option<i32>,
pub votes_up: Option<i32>,
}Fields§
§date: Option<i64>§local_date_string: Option<String>§local_date_hours: Option<i32>§commenter_name: String§commenter_email: Option<Option<String>>§commenter_link: Option<Option<String>>§comment: String§product_id: Option<i32>§user_id: Option<Option<String>>§avatar_src: Option<Option<String>>§parent_id: Option<Option<String>>§mentions: Option<Vec<CommentUserMentionInfo>>§page_title: Option<String>§is_from_my_account_page: Option<bool>§url: String§url_id: String§meta: Option<Value>§moderation_group_ids: Option<Vec<String>>§rating: Option<f64>§from_offline_restore: Option<bool>§autoplay_delay_ms: Option<i64>§feedback_ids: Option<Vec<String>>§question_values: Option<HashMap<String, RecordStringStringOrNumberValue>>Construct a type with a set of properties K of type T
approved: Option<bool>§domain: Option<String>§ip: Option<String>§is_pinned: Option<bool>§locale: StringExample: en_us
reviewed: Option<bool>§verified: Option<bool>§votes: Option<i32>§votes_down: Option<i32>§votes_up: Option<i32>Implementations§
Trait Implementations§
Source§impl Clone for CreateCommentParams
impl Clone for CreateCommentParams
Source§fn clone(&self) -> CreateCommentParams
fn clone(&self) -> CreateCommentParams
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CreateCommentParams
impl Debug for CreateCommentParams
Source§impl Default for CreateCommentParams
impl Default for CreateCommentParams
Source§fn default() -> CreateCommentParams
fn default() -> CreateCommentParams
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CreateCommentParams
impl<'de> Deserialize<'de> for CreateCommentParams
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
Source§impl PartialEq for CreateCommentParams
impl PartialEq for CreateCommentParams
Source§impl Serialize for CreateCommentParams
impl Serialize for CreateCommentParams
impl StructuralPartialEq for CreateCommentParams
Auto Trait Implementations§
impl Freeze for CreateCommentParams
impl RefUnwindSafe for CreateCommentParams
impl Send for CreateCommentParams
impl Sync for CreateCommentParams
impl Unpin for CreateCommentParams
impl UnwindSafe for CreateCommentParams
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