pub struct JsonFormatFactory {
pub options: Option<JsonOptions>,
}
Expand description
Factory struct used to create JsonFormat
Fields§
§options: Option<JsonOptions>
the options carried by format factory
Implementations§
Source§impl JsonFormatFactory
impl JsonFormatFactory
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates an instance of JsonFormatFactory
Sourcepub fn new_with_options(options: JsonOptions) -> Self
pub fn new_with_options(options: JsonOptions) -> Self
Creates an instance of JsonFormatFactory with customized default options
Trait Implementations§
Source§impl Debug for JsonFormatFactory
impl Debug for JsonFormatFactory
Source§impl Default for JsonFormatFactory
impl Default for JsonFormatFactory
Source§fn default() -> JsonFormatFactory
fn default() -> JsonFormatFactory
Returns the “default value” for a type. Read more
Source§impl FileFormatFactory for JsonFormatFactory
impl FileFormatFactory for JsonFormatFactory
Source§fn create(
&self,
state: &dyn Session,
format_options: &HashMap<String, String>,
) -> Result<Arc<dyn FileFormat>>
fn create( &self, state: &dyn Session, format_options: &HashMap<String, String>, ) -> Result<Arc<dyn FileFormat>>
Initialize a FileFormat and configure based on session and command level options
Source§fn default(&self) -> Arc<dyn FileFormat>
fn default(&self) -> Arc<dyn FileFormat>
Initialize a FileFormat with all options set to default values
Auto Trait Implementations§
impl Freeze for JsonFormatFactory
impl RefUnwindSafe for JsonFormatFactory
impl Send for JsonFormatFactory
impl Sync for JsonFormatFactory
impl Unpin for JsonFormatFactory
impl UnwindSafe for JsonFormatFactory
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more