#[non_exhaustive]pub enum InputFormat {
Json,
Jsonl,
Csv,
Tsv,
FaceEnvelope,
}Expand description
Detected or supplied input format.
Wire form is lowercase except for face-envelope, which keeps the
hyphen so it stays distinguishable in provenance output.
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.
Json
Single JSON document.
Jsonl
JSON-lines (one JSON value per line).
Csv
Comma-separated values.
Tsv
Tab-separated values.
FaceEnvelope
Set when stdin was a previously-emitted face envelope (§9).
Wire form: "face-envelope".
Trait Implementations§
Source§impl Clone for InputFormat
impl Clone for InputFormat
Source§fn clone(&self) -> InputFormat
fn clone(&self) -> InputFormat
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 InputFormat
Source§impl Debug for InputFormat
impl Debug for InputFormat
Source§impl Default for InputFormat
impl Default for InputFormat
Source§fn default() -> InputFormat
fn default() -> InputFormat
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for InputFormat
impl<'de> Deserialize<'de> for InputFormat
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 InputFormat
Source§impl Hash for InputFormat
impl Hash for InputFormat
Source§impl PartialEq for InputFormat
impl PartialEq for InputFormat
Source§impl Serialize for InputFormat
impl Serialize for InputFormat
impl StructuralPartialEq for InputFormat
Auto Trait Implementations§
impl Freeze for InputFormat
impl RefUnwindSafe for InputFormat
impl Send for InputFormat
impl Sync for InputFormat
impl Unpin for InputFormat
impl UnsafeUnpin for InputFormat
impl UnwindSafe for InputFormat
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