pub struct NewsSource {
pub id: String,
pub name: String,
pub url: String,
pub category: String,
pub credibility_score: u32,
pub accuracy_rating: Option<f64>,
pub bias_score: Option<f64>,
pub is_verified: bool,
pub logo_url: Option<String>,
}Expand description
News source information and credibility
Fields§
§id: StringSource identifier
name: StringSource name (e.g., “CoinDesk”, “Reuters”)
url: StringSource website URL
category: StringSource category (Mainstream, Crypto-Native, Blog, etc.)
credibility_score: u32Credibility score (0-100)
accuracy_rating: Option<f64>Historical accuracy rating
bias_score: Option<f64>Source bias score (-1.0 to 1.0, -1 = bearish, 1 = bullish)
is_verified: boolWhether source is verified/trusted
logo_url: Option<String>Source logo URL
Trait Implementations§
Source§impl Clone for NewsSource
impl Clone for NewsSource
Source§fn clone(&self) -> NewsSource
fn clone(&self) -> NewsSource
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 NewsSource
impl Debug for NewsSource
Source§impl<'de> Deserialize<'de> for NewsSource
impl<'de> Deserialize<'de> for NewsSource
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 NewsSource
impl JsonSchema for NewsSource
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 NewsSource
impl RefUnwindSafe for NewsSource
impl Send for NewsSource
impl Sync for NewsSource
impl Unpin for NewsSource
impl UnwindSafe for NewsSource
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