#[non_exhaustive]pub struct DocumentOutputConfig {
pub destination: Option<Destination>,
/* private fields */
}Expand description
Config that controls the output of documents. All documents will be written as a JSON file.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.destination: Option<Destination>The destination of the results.
Implementations§
Source§impl DocumentOutputConfig
impl DocumentOutputConfig
pub fn new() -> Self
Sourcepub fn set_destination<T: Into<Option<Destination>>>(self, v: T) -> Self
pub fn set_destination<T: Into<Option<Destination>>>(self, v: T) -> Self
Sets the value of destination.
Note that all the setters affecting destination are mutually
exclusive.
Sourcepub fn gcs_output_config(&self) -> Option<&Box<GcsOutputConfig>>
pub fn gcs_output_config(&self) -> Option<&Box<GcsOutputConfig>>
The value of destination
if it holds a GcsOutputConfig, None if the field is not set or
holds a different branch.
Sourcepub fn set_gcs_output_config<T: Into<Box<GcsOutputConfig>>>(self, v: T) -> Self
pub fn set_gcs_output_config<T: Into<Box<GcsOutputConfig>>>(self, v: T) -> Self
Sets the value of destination
to hold a GcsOutputConfig.
Note that all the setters affecting destination are
mutually exclusive.
Trait Implementations§
Source§impl Clone for DocumentOutputConfig
impl Clone for DocumentOutputConfig
Source§fn clone(&self) -> DocumentOutputConfig
fn clone(&self) -> DocumentOutputConfig
Returns a duplicate 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 DocumentOutputConfig
impl Debug for DocumentOutputConfig
Source§impl Default for DocumentOutputConfig
impl Default for DocumentOutputConfig
Source§fn default() -> DocumentOutputConfig
fn default() -> DocumentOutputConfig
Returns the “default value” for a type. Read more
Source§impl Message for DocumentOutputConfig
impl Message for DocumentOutputConfig
Source§impl PartialEq for DocumentOutputConfig
impl PartialEq for DocumentOutputConfig
impl StructuralPartialEq for DocumentOutputConfig
Auto Trait Implementations§
impl Freeze for DocumentOutputConfig
impl RefUnwindSafe for DocumentOutputConfig
impl Send for DocumentOutputConfig
impl Sync for DocumentOutputConfig
impl Unpin for DocumentOutputConfig
impl UnwindSafe for DocumentOutputConfig
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