#[non_exhaustive]pub struct BatchDocumentsInputConfig {
pub source: Option<Source>,
/* private fields */
}Expand description
The common config to specify a set of documents used as input.
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.source: Option<Source>The source. Make sure that the caller of the API has storage.objects.get access to the buckets.
Implementations§
Source§impl BatchDocumentsInputConfig
impl BatchDocumentsInputConfig
pub fn new() -> Self
Sourcepub fn set_source<T: Into<Option<Source>>>(self, v: T) -> Self
pub fn set_source<T: Into<Option<Source>>>(self, v: T) -> Self
Sets the value of source.
Note that all the setters affecting source are mutually
exclusive.
Sourcepub fn gcs_prefix(&self) -> Option<&Box<GcsPrefix>>
pub fn gcs_prefix(&self) -> Option<&Box<GcsPrefix>>
The value of source
if it holds a GcsPrefix, None if the field is not set or
holds a different branch.
Sourcepub fn set_gcs_prefix<T: Into<Box<GcsPrefix>>>(self, v: T) -> Self
pub fn set_gcs_prefix<T: Into<Box<GcsPrefix>>>(self, v: T) -> Self
Sets the value of source
to hold a GcsPrefix.
Note that all the setters affecting source are
mutually exclusive.
Sourcepub fn gcs_documents(&self) -> Option<&Box<GcsDocuments>>
pub fn gcs_documents(&self) -> Option<&Box<GcsDocuments>>
The value of source
if it holds a GcsDocuments, None if the field is not set or
holds a different branch.
Sourcepub fn set_gcs_documents<T: Into<Box<GcsDocuments>>>(self, v: T) -> Self
pub fn set_gcs_documents<T: Into<Box<GcsDocuments>>>(self, v: T) -> Self
Sets the value of source
to hold a GcsDocuments.
Note that all the setters affecting source are
mutually exclusive.
Trait Implementations§
Source§impl Clone for BatchDocumentsInputConfig
impl Clone for BatchDocumentsInputConfig
Source§fn clone(&self) -> BatchDocumentsInputConfig
fn clone(&self) -> BatchDocumentsInputConfig
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 BatchDocumentsInputConfig
impl Debug for BatchDocumentsInputConfig
Source§impl Default for BatchDocumentsInputConfig
impl Default for BatchDocumentsInputConfig
Source§fn default() -> BatchDocumentsInputConfig
fn default() -> BatchDocumentsInputConfig
Returns the “default value” for a type. Read more
Source§impl Message for BatchDocumentsInputConfig
impl Message for BatchDocumentsInputConfig
impl StructuralPartialEq for BatchDocumentsInputConfig
Auto Trait Implementations§
impl Freeze for BatchDocumentsInputConfig
impl RefUnwindSafe for BatchDocumentsInputConfig
impl Send for BatchDocumentsInputConfig
impl Sync for BatchDocumentsInputConfig
impl Unpin for BatchDocumentsInputConfig
impl UnwindSafe for BatchDocumentsInputConfig
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