pub struct FilesystemExporter { /* private fields */ }
Expand description
A data exporter that writes data to a filesystem hierarchy. See the module-level docs for an example.
Implementations§
§impl FilesystemExporter
impl FilesystemExporter
pub fn try_new(
serializer: Box<dyn AbstractSerializer + Sync>,
options: Options,
) -> Result<FilesystemExporter, DataError>
pub fn try_new( serializer: Box<dyn AbstractSerializer + Sync>, options: Options, ) -> Result<FilesystemExporter, DataError>
Creates a new FilesystemExporter
with a serializer and options.
See the module-level docs for an example.
Trait Implementations§
§impl DataExporter for FilesystemExporter
impl DataExporter for FilesystemExporter
§fn put_payload(
&self,
marker: DataMarkerInfo,
id: DataIdentifierBorrowed<'_>,
obj: &DataPayload<ExportMarker>,
) -> Result<(), DataError>
fn put_payload( &self, marker: DataMarkerInfo, id: DataIdentifierBorrowed<'_>, obj: &DataPayload<ExportMarker>, ) -> Result<(), DataError>
Save a
payload
corresponding to the given marker and locale. Read more§fn flush(
&self,
marker: DataMarkerInfo,
_metadata: FlushMetadata,
) -> Result<(), DataError>
fn flush( &self, marker: DataMarkerInfo, _metadata: FlushMetadata, ) -> Result<(), DataError>
Function called after a non-singleton marker has been fully enumerated. Read more
§fn flush_singleton(
&self,
marker: DataMarkerInfo,
payload: &DataPayload<ExportMarker>,
metadata: FlushMetadata,
) -> Result<(), DataError>
fn flush_singleton( &self, marker: DataMarkerInfo, payload: &DataPayload<ExportMarker>, metadata: FlushMetadata, ) -> Result<(), DataError>
Function called for singleton markers. Read more
Auto Trait Implementations§
impl Freeze for FilesystemExporter
impl !RefUnwindSafe for FilesystemExporter
impl !Send for FilesystemExporter
impl Sync for FilesystemExporter
impl Unpin for FilesystemExporter
impl !UnwindSafe for FilesystemExporter
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