pub enum Format {
Text,
Json,
Yaml,
Protobuf,
}Variants§
Implementations§
Source§impl Format
impl Format
Sourcepub fn from_extension(path: &str) -> Option<Format>
pub fn from_extension(path: &str) -> Option<Format>
Detect format from file extension
pub fn read_plan<R: Read>( &self, reader: R, registry: &ExtensionRegistry, ) -> Result<Plan>
pub fn write_plan<W: Write>( &self, writer: W, plan: &Plan, options: &OutputOptions, registry: &ExtensionRegistry, ) -> Result<Outcome>
Trait Implementations§
impl StructuralPartialEq for Format
Auto Trait Implementations§
impl Freeze for Format
impl RefUnwindSafe for Format
impl Send for Format
impl Sync for Format
impl Unpin for Format
impl UnwindSafe for Format
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