#[non_exhaustive]pub struct ArticleSource {
pub domain: String,
pub type: Option<SourceType>,
}Expand description
Source of an article.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.domain: StringDomain, e.g. www.reuters.com; the join key to sources().list().
type: Option<SourceType>Source type when the article was indexed (open). None when the source is not
classified or the article is older than source types. Can lag Source::type after a
reclassification.
Trait Implementations§
Source§impl Clone for ArticleSource
impl Clone for ArticleSource
Source§impl Debug for ArticleSource
impl Debug for ArticleSource
Source§impl<'de> Deserialize<'de> for ArticleSource
impl<'de> Deserialize<'de> for ArticleSource
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 Eq for ArticleSource
Source§impl PartialEq for ArticleSource
impl PartialEq for ArticleSource
Source§impl Serialize for ArticleSource
impl Serialize for ArticleSource
impl StructuralPartialEq for ArticleSource
Auto Trait Implementations§
impl Forget for ArticleSource
impl Freeze for ArticleSource
impl Move for ArticleSource
impl RefUnwindSafe for ArticleSource
impl Send for ArticleSourcewhere
RawVecInner: Send,
impl Sync for ArticleSourcewhere
RawVecInner: Sync,
impl Unpin for ArticleSource
impl UnsafeUnpin for ArticleSource
impl UnwindSafe for ArticleSourcewhere
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