pub struct SourceEntry {Show 17 fields
pub id: String,
pub name: String,
pub url: String,
pub source_type: String,
pub parser: String,
pub region: String,
pub language: String,
pub domains: Vec<String>,
pub quality_score: f32,
pub accessibility_score: f32,
pub rules_contributed: u32,
pub fetch_success_count: u32,
pub fetch_fail_count: u32,
pub last_fetched: Option<String>,
pub mutable: bool,
pub origin: String,
pub enabled: bool,
}Expand description
A single external information source entry.
Fields§
§id: String§name: String§url: String§source_type: String§parser: String§region: String§language: String§domains: Vec<String>§quality_score: f32§accessibility_score: f32§rules_contributed: u32§fetch_success_count: u32§fetch_fail_count: u32§last_fetched: Option<String>§mutable: bool§origin: String§enabled: boolTrait Implementations§
Source§impl Clone for SourceEntry
impl Clone for SourceEntry
Source§fn clone(&self) -> SourceEntry
fn clone(&self) -> SourceEntry
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 SourceEntry
impl Debug for SourceEntry
Source§impl<'de> Deserialize<'de> for SourceEntry
impl<'de> Deserialize<'de> for SourceEntry
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
Auto Trait Implementations§
impl Freeze for SourceEntry
impl RefUnwindSafe for SourceEntry
impl Send for SourceEntry
impl Sync for SourceEntry
impl Unpin for SourceEntry
impl UnsafeUnpin for SourceEntry
impl UnwindSafe for SourceEntry
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