pub enum FileFormat {
Csv {
with_header: bool,
},
Json,
Control,
Custom {
extension: String,
},
}
Expand description
Used internally by algorithms to determine whether they can support writing a checkpoint file of the designated type.
When checkpoints are specified by Driver::checkpoint
, the file format is determined from
the file extension of the supplied path.
Variants§
Implementations§
Source§impl FileFormat
impl FileFormat
pub fn from_path(path: &Path) -> Self
pub fn from_os_str(file_extension: &OsStr) -> Self
pub fn to_extension(&self) -> String
Sourcepub fn unsupported_error(&self) -> Error
pub fn unsupported_error(&self) -> Error
Will generate an io::Error
indicating that the file format is unsupported
Trait Implementations§
Source§impl Clone for FileFormat
impl Clone for FileFormat
Source§fn clone(&self) -> FileFormat
fn clone(&self) -> FileFormat
Returns a copy 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 FileFormat
impl Debug for FileFormat
Source§impl PartialEq for FileFormat
impl PartialEq for FileFormat
impl Eq for FileFormat
impl StructuralPartialEq for FileFormat
Auto Trait Implementations§
impl Freeze for FileFormat
impl RefUnwindSafe for FileFormat
impl Send for FileFormat
impl Sync for FileFormat
impl Unpin for FileFormat
impl UnwindSafe for FileFormat
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