pub struct ParseSpec {
pub format: ParseFormat,
pub records_path: Option<String>,
pub delimiter: Option<u8>,
pub has_headers: bool,
pub sheet: Option<String>,
pub header_row: usize,
}Expand description
Parse the decoded bytes into records.
Fields§
§format: ParseFormatOutput format.
records_path: Option<String>JSONPath selecting the record array (json/xml). When omitted, an array body becomes the records and an object becomes a single record.
delimiter: Option<u8>CSV delimiter byte (default ,).
has_headers: boolWhether the first CSV row is a header (default true).
sheet: Option<String>Excel worksheet name / index-as-string (default: first).
header_row: usize0-based Excel header row (default 0).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ParseSpec
impl<'de> Deserialize<'de> for ParseSpec
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 JsonSchema for ParseSpec
impl JsonSchema for ParseSpec
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for ParseSpec
Auto Trait Implementations§
impl Freeze for ParseSpec
impl RefUnwindSafe for ParseSpec
impl Send for ParseSpec
impl Sync for ParseSpec
impl Unpin for ParseSpec
impl UnsafeUnpin for ParseSpec
impl UnwindSafe for ParseSpec
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