#[non_exhaustive]pub struct InvalidDataFormat {
pub sampled_data_locations: Vec<String>,
pub expected_format: String,
pub new_format: String,
/* private fields */
}Expand description
Action details for invalid or unsupported data files detected by discovery.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.sampled_data_locations: Vec<String>The list of data locations sampled and used for format/schema inference.
expected_format: StringThe expected data format of the entity.
new_format: StringThe new unexpected data format within the entity.
Implementations§
Source§impl InvalidDataFormat
impl InvalidDataFormat
pub fn new() -> Self
Sourcepub fn set_sampled_data_locations<T, V>(self, v: T) -> Self
pub fn set_sampled_data_locations<T, V>(self, v: T) -> Self
Sets the value of sampled_data_locations.
Sourcepub fn set_expected_format<T: Into<String>>(self, v: T) -> Self
pub fn set_expected_format<T: Into<String>>(self, v: T) -> Self
Sets the value of expected_format.
Sourcepub fn set_new_format<T: Into<String>>(self, v: T) -> Self
pub fn set_new_format<T: Into<String>>(self, v: T) -> Self
Sets the value of new_format.
Trait Implementations§
Source§impl Clone for InvalidDataFormat
impl Clone for InvalidDataFormat
Source§fn clone(&self) -> InvalidDataFormat
fn clone(&self) -> InvalidDataFormat
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 Debug for InvalidDataFormat
impl Debug for InvalidDataFormat
Source§impl Default for InvalidDataFormat
impl Default for InvalidDataFormat
Source§fn default() -> InvalidDataFormat
fn default() -> InvalidDataFormat
Returns the “default value” for a type. Read more
Source§impl Message for InvalidDataFormat
impl Message for InvalidDataFormat
Source§impl PartialEq for InvalidDataFormat
impl PartialEq for InvalidDataFormat
impl StructuralPartialEq for InvalidDataFormat
Auto Trait Implementations§
impl Freeze for InvalidDataFormat
impl RefUnwindSafe for InvalidDataFormat
impl Send for InvalidDataFormat
impl Sync for InvalidDataFormat
impl Unpin for InvalidDataFormat
impl UnwindSafe for InvalidDataFormat
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