pub struct Source {
pub domain: String,
pub is_content_available: bool,
pub is_default_source: bool,
}Expand description
A news source available through the API.
Fields§
§domain: StringSource domain, e.g. www.reuters.com.
is_content_available: boolWhether full article content is available for this source. The API omits this field for keys without content access.
is_default_source: boolWhether the source is queried by default (without opt-in).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Source
impl<'de> Deserialize<'de> for Source
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
impl StructuralPartialEq for Source
Auto Trait Implementations§
impl Forget for Source
impl Freeze for Source
impl Move for Source
impl RefUnwindSafe for Source
impl Send for Sourcewhere
RawVecInner: Send,
impl Sync for Sourcewhere
RawVecInner: Sync,
impl Unpin for Source
impl UnsafeUnpin for Source
impl UnwindSafe for Sourcewhere
RawVecInner: UnwindSafe,
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