pub struct SentimentData {
pub symbol: String,
pub social_score: f64,
pub sentiment_score: f64,
pub social_volume: u64,
pub mentions: u64,
pub influencer_posts: u64,
pub avg_social_volume: f64,
pub social_volume_change: f64,
pub platform_sentiment: HashMap<String, f64>,
pub trending_keywords: Vec<String>,
pub timestamp: DateTime<Utc>,
}Expand description
Social sentiment data for a cryptocurrency
Fields§
§symbol: StringCryptocurrency symbol (e.g., “BTC”, “ETH”)
Overall social score (0-100)
sentiment_score: f64Sentiment score (-1 to 1, where 1 is very positive)
Social volume (number of mentions)
mentions: u64Total mentions across all platforms
influencer_posts: u64Number of posts from influencers
Average social volume over the timeframe
Social volume change percentage
platform_sentiment: HashMap<String, f64>Sentiment breakdown by platform
trending_keywords: Vec<String>Trending keywords associated with the token
timestamp: DateTime<Utc>Data timestamp
Trait Implementations§
Source§impl Clone for SentimentData
impl Clone for SentimentData
Source§fn clone(&self) -> SentimentData
fn clone(&self) -> SentimentData
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 SentimentData
impl Debug for SentimentData
Source§impl<'de> Deserialize<'de> for SentimentData
impl<'de> Deserialize<'de> for SentimentData
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 JsonSchema for SentimentData
impl JsonSchema for SentimentData
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for SentimentData
impl RefUnwindSafe for SentimentData
impl Send for SentimentData
impl Sync for SentimentData
impl Unpin for SentimentData
impl UnwindSafe for SentimentData
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