pub(crate) struct Builder {
pub(crate) default_format: ConfigurableFormat,
pub(crate) custom_format: Option<Box<dyn RecordFormat + Sync + Send>>,
built: bool,
}Fields§
§default_format: ConfigurableFormat§custom_format: Option<Box<dyn RecordFormat + Sync + Send>>§built: boolImplementations§
Source§impl Builder
impl Builder
Sourcepub(crate) fn build(&mut self) -> Box<dyn RecordFormat + Sync + Send>
pub(crate) fn build(&mut self) -> Box<dyn RecordFormat + Sync + Send>
Convert the format into a callable function.
If the custom_format is Some, then any default_format switches are ignored.
If the custom_format is None, then a default format is returned.
Any default_format switches set to false won’t be written by the format.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Builder
impl !RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl !UnwindSafe for Builder
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