#[non_exhaustive]pub struct ImportDocumentsResponse {
pub error_samples: Vec<Status>,
pub error_config: Option<ImportErrorConfig>,
/* private fields */
}Available on crate feature
document-service only.Expand description
Response of the ImportDocumentsRequest. If the long running operation is done, 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 in the request if set.
Implementations§
Source§impl ImportDocumentsResponse
impl ImportDocumentsResponse
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 = ImportDocumentsResponse::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 = ImportDocumentsResponse::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 = ImportDocumentsResponse::new().set_or_clear_error_config(Some(ImportErrorConfig::default()/* use setters */));
let x = ImportDocumentsResponse::new().set_or_clear_error_config(None::<ImportErrorConfig>);Trait Implementations§
Source§impl Clone for ImportDocumentsResponse
impl Clone for ImportDocumentsResponse
Source§fn clone(&self) -> ImportDocumentsResponse
fn clone(&self) -> ImportDocumentsResponse
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 ImportDocumentsResponse
impl Debug for ImportDocumentsResponse
Source§impl Default for ImportDocumentsResponse
impl Default for ImportDocumentsResponse
Source§fn default() -> ImportDocumentsResponse
fn default() -> ImportDocumentsResponse
Returns the “default value” for a type. Read more
Source§impl Message for ImportDocumentsResponse
impl Message for ImportDocumentsResponse
Source§impl PartialEq for ImportDocumentsResponse
impl PartialEq for ImportDocumentsResponse
impl StructuralPartialEq for ImportDocumentsResponse
Auto Trait Implementations§
impl Freeze for ImportDocumentsResponse
impl RefUnwindSafe for ImportDocumentsResponse
impl Send for ImportDocumentsResponse
impl Sync for ImportDocumentsResponse
impl Unpin for ImportDocumentsResponse
impl UnwindSafe for ImportDocumentsResponse
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