#[non_exhaustive]pub struct ImportErrorConfig {
pub destination: Option<Destination>,
/* private fields */
}Available on crate features
completion-service or document-service or search-tuning-service or user-event-service only.Expand description
Configuration of destination for Import related errors.
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>Required. Errors destination.
Implementations§
Source§impl ImportErrorConfig
impl ImportErrorConfig
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.
§Example
ⓘ
use google_cloud_discoveryengine_v1::model::import_error_config::Destination;
let x = ImportErrorConfig::new().set_destination(Some(Destination::GcsPrefix("example".to_string())));Sourcepub fn gcs_prefix(&self) -> Option<&String>
pub fn gcs_prefix(&self) -> Option<&String>
The value of destination
if it holds a GcsPrefix, None if the field is not set or
holds a different branch.
Sourcepub fn set_gcs_prefix<T: Into<String>>(self, v: T) -> Self
pub fn set_gcs_prefix<T: Into<String>>(self, v: T) -> Self
Sets the value of destination
to hold a GcsPrefix.
Note that all the setters affecting destination are
mutually exclusive.
§Example
ⓘ
let x = ImportErrorConfig::new().set_gcs_prefix("example");
assert!(x.gcs_prefix().is_some());Trait Implementations§
Source§impl Clone for ImportErrorConfig
impl Clone for ImportErrorConfig
Source§fn clone(&self) -> ImportErrorConfig
fn clone(&self) -> ImportErrorConfig
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 ImportErrorConfig
impl Debug for ImportErrorConfig
Source§impl Default for ImportErrorConfig
impl Default for ImportErrorConfig
Source§fn default() -> ImportErrorConfig
fn default() -> ImportErrorConfig
Returns the “default value” for a type. Read more
Source§impl Message for ImportErrorConfig
impl Message for ImportErrorConfig
Source§impl PartialEq for ImportErrorConfig
impl PartialEq for ImportErrorConfig
impl StructuralPartialEq for ImportErrorConfig
Auto Trait Implementations§
impl Freeze for ImportErrorConfig
impl RefUnwindSafe for ImportErrorConfig
impl Send for ImportErrorConfig
impl Sync for ImportErrorConfig
impl Unpin for ImportErrorConfig
impl UnwindSafe for ImportErrorConfig
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