#[non_exhaustive]pub struct PurgeErrorConfig {
pub destination: Option<Destination>,
/* private fields */
}Available on crate feature
document-service only.Expand description
Configuration of destination for Purge 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 PurgeErrorConfig
impl PurgeErrorConfig
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::purge_error_config::Destination;
let x = PurgeErrorConfig::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 = PurgeErrorConfig::new().set_gcs_prefix("example");
assert!(x.gcs_prefix().is_some());Trait Implementations§
Source§impl Clone for PurgeErrorConfig
impl Clone for PurgeErrorConfig
Source§fn clone(&self) -> PurgeErrorConfig
fn clone(&self) -> PurgeErrorConfig
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 PurgeErrorConfig
impl Debug for PurgeErrorConfig
Source§impl Default for PurgeErrorConfig
impl Default for PurgeErrorConfig
Source§fn default() -> PurgeErrorConfig
fn default() -> PurgeErrorConfig
Returns the “default value” for a type. Read more
Source§impl Message for PurgeErrorConfig
impl Message for PurgeErrorConfig
Source§impl PartialEq for PurgeErrorConfig
impl PartialEq for PurgeErrorConfig
impl StructuralPartialEq for PurgeErrorConfig
Auto Trait Implementations§
impl Freeze for PurgeErrorConfig
impl RefUnwindSafe for PurgeErrorConfig
impl Send for PurgeErrorConfig
impl Sync for PurgeErrorConfig
impl Unpin for PurgeErrorConfig
impl UnwindSafe for PurgeErrorConfig
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