#[non_exhaustive]pub struct ImportUserEventsResponse {
pub error_samples: Vec<Status>,
pub error_config: Option<ImportErrorConfig>,
pub joined_events_count: i64,
pub unjoined_events_count: i64,
/* private fields */
}Available on crate feature
user-event-service only.Expand description
Response of the ImportUserEventsRequest. If the long running operation was successful, then this message is returned by the google.longrunning.Operations.response field if the operation was successful.
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.error_samples: Vec<Status>A sample of errors encountered while processing the request.
error_config: Option<ImportErrorConfig>Echoes the destination for the complete errors if this field was set in the request.
joined_events_count: i64Count of user events imported with complete existing Documents.
unjoined_events_count: i64Count of user events imported, but with Document information not found in the existing Branch.
Implementations§
Source§impl ImportUserEventsResponse
impl ImportUserEventsResponse
pub fn new() -> Self
Sourcepub fn set_error_samples<T, V>(self, v: T) -> Self
pub fn set_error_samples<T, V>(self, v: T) -> Self
Sets the value of error_samples.
§Example
ⓘ
use rpc::model::Status;
let x = ImportUserEventsResponse::new()
.set_error_samples([
Status::default()/* use setters */,
Status::default()/* use (different) setters */,
]);Sourcepub fn set_error_config<T>(self, v: T) -> Selfwhere
T: Into<ImportErrorConfig>,
pub fn set_error_config<T>(self, v: T) -> Selfwhere
T: Into<ImportErrorConfig>,
Sets the value of error_config.
§Example
ⓘ
use google_cloud_discoveryengine_v1::model::ImportErrorConfig;
let x = ImportUserEventsResponse::new().set_error_config(ImportErrorConfig::default()/* use setters */);Sourcepub fn set_or_clear_error_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<ImportErrorConfig>,
pub fn set_or_clear_error_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<ImportErrorConfig>,
Sets or clears the value of error_config.
§Example
ⓘ
use google_cloud_discoveryengine_v1::model::ImportErrorConfig;
let x = ImportUserEventsResponse::new().set_or_clear_error_config(Some(ImportErrorConfig::default()/* use setters */));
let x = ImportUserEventsResponse::new().set_or_clear_error_config(None::<ImportErrorConfig>);Sourcepub fn set_joined_events_count<T: Into<i64>>(self, v: T) -> Self
pub fn set_joined_events_count<T: Into<i64>>(self, v: T) -> Self
Sets the value of joined_events_count.
§Example
ⓘ
let x = ImportUserEventsResponse::new().set_joined_events_count(42);Sourcepub fn set_unjoined_events_count<T: Into<i64>>(self, v: T) -> Self
pub fn set_unjoined_events_count<T: Into<i64>>(self, v: T) -> Self
Sets the value of unjoined_events_count.
§Example
ⓘ
let x = ImportUserEventsResponse::new().set_unjoined_events_count(42);Trait Implementations§
Source§impl Clone for ImportUserEventsResponse
impl Clone for ImportUserEventsResponse
Source§fn clone(&self) -> ImportUserEventsResponse
fn clone(&self) -> ImportUserEventsResponse
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 ImportUserEventsResponse
impl Debug for ImportUserEventsResponse
Source§impl Default for ImportUserEventsResponse
impl Default for ImportUserEventsResponse
Source§fn default() -> ImportUserEventsResponse
fn default() -> ImportUserEventsResponse
Returns the “default value” for a type. Read more
Source§impl Message for ImportUserEventsResponse
impl Message for ImportUserEventsResponse
Source§impl PartialEq for ImportUserEventsResponse
impl PartialEq for ImportUserEventsResponse
impl StructuralPartialEq for ImportUserEventsResponse
Auto Trait Implementations§
impl Freeze for ImportUserEventsResponse
impl RefUnwindSafe for ImportUserEventsResponse
impl Send for ImportUserEventsResponse
impl Sync for ImportUserEventsResponse
impl Unpin for ImportUserEventsResponse
impl UnwindSafe for ImportUserEventsResponse
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