pub struct WikipediaPageDataSource {
pub page_identifier: String,
pub language: String,
}Expand description
The Wikipedia page data source.
Fields§
§page_identifier: StringThe identifier of the wikipedia page.
language: StringThe language for which the page identifier is valid.
Trait Implementations§
Source§impl Clone for WikipediaPageDataSource
impl Clone for WikipediaPageDataSource
Source§fn clone(&self) -> WikipediaPageDataSource
fn clone(&self) -> WikipediaPageDataSource
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 DataSourceInfo for WikipediaPageDataSource
impl DataSourceInfo for WikipediaPageDataSource
Source§fn is_download_supported(&self) -> bool
fn is_download_supported(&self) -> bool
Tell whether the download is supported from that data source.
Source§fn provides_documents(&self, _document_kind: DocumentKind) -> bool
fn provides_documents(&self, _document_kind: DocumentKind) -> bool
Get the list of documents provided by that data source.
Source§impl Debug for WikipediaPageDataSource
impl Debug for WikipediaPageDataSource
Source§impl<'de> Deserialize<'de> for WikipediaPageDataSource
impl<'de> Deserialize<'de> for WikipediaPageDataSource
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 Ord for WikipediaPageDataSource
impl Ord for WikipediaPageDataSource
Source§fn cmp(&self, other: &WikipediaPageDataSource) -> Ordering
fn cmp(&self, other: &WikipediaPageDataSource) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for WikipediaPageDataSource
impl PartialEq for WikipediaPageDataSource
Source§impl PartialOrd for WikipediaPageDataSource
impl PartialOrd for WikipediaPageDataSource
Source§impl Serialize for WikipediaPageDataSource
impl Serialize for WikipediaPageDataSource
impl Eq for WikipediaPageDataSource
impl StructuralPartialEq for WikipediaPageDataSource
Auto Trait Implementations§
impl Freeze for WikipediaPageDataSource
impl RefUnwindSafe for WikipediaPageDataSource
impl Send for WikipediaPageDataSource
impl Sync for WikipediaPageDataSource
impl Unpin for WikipediaPageDataSource
impl UnwindSafe for WikipediaPageDataSource
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