pub enum DatasetFormat {
Json,
Csv,
Markdown,
Html,
}Expand description
Output shape for a dataset read (the ?format= query param).
Json is the documented envelope. The rest render TEXT and are CONTENT-AWARE:
a dataset whose records carry long-form content (a crawl’s pages have
markdown) renders as documents, anything else as a table. Because they are
not JSON they are served by the *_text methods on crate::resources::Datasets.
Variants§
Json
The documented JSON envelope (the API default).
Csv
Comma-separated table.
Markdown
Readable prose — documents for a crawl, a table otherwise.
Html
A standalone HTML document (meant to be saved/viewed, not parsed).
Implementations§
Trait Implementations§
Source§impl Clone for DatasetFormat
impl Clone for DatasetFormat
Source§fn clone(&self) -> DatasetFormat
fn clone(&self) -> DatasetFormat
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DatasetFormat
Source§impl Debug for DatasetFormat
impl Debug for DatasetFormat
impl Eq for DatasetFormat
Source§impl PartialEq for DatasetFormat
impl PartialEq for DatasetFormat
impl StructuralPartialEq for DatasetFormat
Auto Trait Implementations§
impl Freeze for DatasetFormat
impl RefUnwindSafe for DatasetFormat
impl Send for DatasetFormat
impl Sync for DatasetFormat
impl Unpin for DatasetFormat
impl UnsafeUnpin for DatasetFormat
impl UnwindSafe for DatasetFormat
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.