#[non_exhaustive]pub enum SourceType {
Newswire,
PressRelease,
FinancialMedia,
GeneralMedia,
Aggregator,
Blog,
Government,
Other(String),
}Expand description
Type of a source: source.type of an article, type of sources().list(), and the
values of the source_types / exclude_source_types search and stream filters.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Newswire
newswire
PressRelease
press_release
FinancialMedia
financial_media
GeneralMedia
general_media
Aggregator
aggregator
Blog
blog
Government
government
Other(String)
A value this SDK version does not know, kept exactly as received.
Implementations§
Source§impl SourceType
impl SourceType
pub const NEWSWIRE: &'static str = "newswire"
pub const PRESS_RELEASE: &'static str = "press_release"
pub const FINANCIAL_MEDIA: &'static str = "financial_media"
pub const GENERAL_MEDIA: &'static str = "general_media"
pub const AGGREGATOR: &'static str = "aggregator"
pub const BLOG: &'static str = "blog"
pub const GOVERNMENT: &'static str = "government"
Trait Implementations§
Source§impl AsRef<str> for SourceType
impl AsRef<str> for SourceType
Source§impl Clone for SourceType
impl Clone for SourceType
Source§impl Debug for SourceType
impl Debug for SourceType
Source§impl<'de> Deserialize<'de> for SourceType
impl<'de> Deserialize<'de> for SourceType
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 Display for SourceType
impl Display for SourceType
impl Eq for SourceType
Source§impl From<&String> for SourceType
impl From<&String> for SourceType
Source§impl From<&str> for SourceType
impl From<&str> for SourceType
Source§impl From<SourceType> for String
impl From<SourceType> for String
Source§fn from(value: SourceType) -> Self
fn from(value: SourceType) -> Self
Converts to this type from the input type.
Source§impl From<String> for SourceType
impl From<String> for SourceType
Source§impl Hash for SourceType
impl Hash for SourceType
Source§impl PartialEq for SourceType
impl PartialEq for SourceType
Source§impl PartialEq<&str> for SourceType
impl PartialEq<&str> for SourceType
Source§impl PartialEq<SourceType> for &str
impl PartialEq<SourceType> for &str
Source§impl PartialEq<str> for SourceType
impl PartialEq<str> for SourceType
Auto Trait Implementations§
impl Forget for SourceType
impl Freeze for SourceType
impl Move for SourceType
impl RefUnwindSafe for SourceType
impl Send for SourceTypewhere
RawVecInner: Send,
impl Sync for SourceTypewhere
RawVecInner: Sync,
impl Unpin for SourceType
impl UnsafeUnpin for SourceType
impl UnwindSafe for SourceTypewhere
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