pub struct ContentAnalysisApiSentimentAnalysisPost {
pub keyword: String,
pub keyword_fields: Option<HashMap<String, String>>,
pub page_type: Option<Vec<String>>,
pub internal_list_limit: Option<i32>,
pub positive_connotation_threshold: Option<f64>,
pub sentiments_connotation_threshold: Option<f64>,
pub initial_dataset_filters: Option<Vec<Value>>,
pub rank_scale: Option<String>,
pub tag: Option<String>,
}Expand description
Request for content_analysis/sentiment_analysis/live.
Fields§
§keyword: StringTarget keyword (UTF-8, lowercased); wrap in escaped double quotes for an exact phrase.
keyword_fields: Option<HashMap<String, String>>Restrict matches to keywords appearing in given fields (title, main_title, previous_title, snippet).
page_type: Option<Vec<String>>Filter by page types (ecommerce, news, blogs, message-boards, organization).
internal_list_limit: Option<i32>Maximum elements within internal arrays like top_domains and countries (default 1, max 20).
positive_connotation_threshold: Option<f64>Minimum positive-sentiment probability for a citation to count (0–1, default 0.4).
sentiments_connotation_threshold: Option<f64>Minimum per-sentiment probability for a citation to count (0–1, default 0.4).
initial_dataset_filters: Option<Vec<Value>>Up to 8 filtering conditions applied to Search fields before aggregation.
rank_scale: Option<String>Scale for rank values: one_hundred or one_thousand (default).
tag: Option<String>User-defined task identifier (max 255 characters).
Implementations§
Source§impl ContentAnalysisApiSentimentAnalysisPost
impl ContentAnalysisApiSentimentAnalysisPost
Sourcepub fn new(keyword: &str) -> ContentAnalysisApiSentimentAnalysisPost
pub fn new(keyword: &str) -> ContentAnalysisApiSentimentAnalysisPost
Creates a request for the given target keyword.