#[non_exhaustive]pub struct ImportUserEventsRequest {
pub parent: String,
pub input_config: Option<UserEventInputConfig>,
pub errors_config: Option<ImportErrorsConfig>,
/* private fields */
}Expand description
Request message for the ImportUserEvents request.
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.parent: StringRequired. projects/1234/locations/global/catalogs/default_catalog
input_config: Option<UserEventInputConfig>Required. The desired input location of the data.
errors_config: Option<ImportErrorsConfig>The desired location of errors incurred during the Import. Cannot be set for inline user event imports.
Implementations§
Source§impl ImportUserEventsRequest
impl ImportUserEventsRequest
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_input_config<T>(self, v: T) -> Selfwhere
T: Into<UserEventInputConfig>,
pub fn set_input_config<T>(self, v: T) -> Selfwhere
T: Into<UserEventInputConfig>,
Sets the value of input_config.
§Example
ⓘ
use google_cloud_retail_v2::model::UserEventInputConfig;
let x = ImportUserEventsRequest::new().set_input_config(UserEventInputConfig::default()/* use setters */);Sourcepub fn set_or_clear_input_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<UserEventInputConfig>,
pub fn set_or_clear_input_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<UserEventInputConfig>,
Sets or clears the value of input_config.
§Example
ⓘ
use google_cloud_retail_v2::model::UserEventInputConfig;
let x = ImportUserEventsRequest::new().set_or_clear_input_config(Some(UserEventInputConfig::default()/* use setters */));
let x = ImportUserEventsRequest::new().set_or_clear_input_config(None::<UserEventInputConfig>);Sourcepub fn set_errors_config<T>(self, v: T) -> Selfwhere
T: Into<ImportErrorsConfig>,
pub fn set_errors_config<T>(self, v: T) -> Selfwhere
T: Into<ImportErrorsConfig>,
Sets the value of errors_config.
§Example
ⓘ
use google_cloud_retail_v2::model::ImportErrorsConfig;
let x = ImportUserEventsRequest::new().set_errors_config(ImportErrorsConfig::default()/* use setters */);Sourcepub fn set_or_clear_errors_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<ImportErrorsConfig>,
pub fn set_or_clear_errors_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<ImportErrorsConfig>,
Sets or clears the value of errors_config.
§Example
ⓘ
use google_cloud_retail_v2::model::ImportErrorsConfig;
let x = ImportUserEventsRequest::new().set_or_clear_errors_config(Some(ImportErrorsConfig::default()/* use setters */));
let x = ImportUserEventsRequest::new().set_or_clear_errors_config(None::<ImportErrorsConfig>);Trait Implementations§
Source§impl Clone for ImportUserEventsRequest
impl Clone for ImportUserEventsRequest
Source§fn clone(&self) -> ImportUserEventsRequest
fn clone(&self) -> ImportUserEventsRequest
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 ImportUserEventsRequest
impl Debug for ImportUserEventsRequest
Source§impl Default for ImportUserEventsRequest
impl Default for ImportUserEventsRequest
Source§fn default() -> ImportUserEventsRequest
fn default() -> ImportUserEventsRequest
Returns the “default value” for a type. Read more
Source§impl Message for ImportUserEventsRequest
impl Message for ImportUserEventsRequest
Source§impl PartialEq for ImportUserEventsRequest
impl PartialEq for ImportUserEventsRequest
impl StructuralPartialEq for ImportUserEventsRequest
Auto Trait Implementations§
impl Freeze for ImportUserEventsRequest
impl RefUnwindSafe for ImportUserEventsRequest
impl Send for ImportUserEventsRequest
impl Sync for ImportUserEventsRequest
impl Unpin for ImportUserEventsRequest
impl UnsafeUnpin for ImportUserEventsRequest
impl UnwindSafe for ImportUserEventsRequest
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