#[non_exhaustive]pub struct ImportCompletionSuggestionsResponse {
pub error_samples: Vec<Status>,
pub error_config: Option<ImportErrorConfig>,
/* private fields */
}Available on crate feature
completion-service only.Expand description
Response of the CompletionService.ImportCompletionSuggestions method. If the long running operation is done, this message is returned by the google.longrunning.Operations.response field if the operation is 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>The desired location of errors incurred during the Import.
Implementations§
Source§impl ImportCompletionSuggestionsResponse
impl ImportCompletionSuggestionsResponse
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 = ImportCompletionSuggestionsResponse::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 = ImportCompletionSuggestionsResponse::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 = ImportCompletionSuggestionsResponse::new().set_or_clear_error_config(Some(ImportErrorConfig::default()/* use setters */));
let x = ImportCompletionSuggestionsResponse::new().set_or_clear_error_config(None::<ImportErrorConfig>);Trait Implementations§
Source§impl Clone for ImportCompletionSuggestionsResponse
impl Clone for ImportCompletionSuggestionsResponse
Source§fn clone(&self) -> ImportCompletionSuggestionsResponse
fn clone(&self) -> ImportCompletionSuggestionsResponse
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 Default for ImportCompletionSuggestionsResponse
impl Default for ImportCompletionSuggestionsResponse
Source§fn default() -> ImportCompletionSuggestionsResponse
fn default() -> ImportCompletionSuggestionsResponse
Returns the “default value” for a type. Read more
Source§impl PartialEq for ImportCompletionSuggestionsResponse
impl PartialEq for ImportCompletionSuggestionsResponse
Source§fn eq(&self, other: &ImportCompletionSuggestionsResponse) -> bool
fn eq(&self, other: &ImportCompletionSuggestionsResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ImportCompletionSuggestionsResponse
Auto Trait Implementations§
impl Freeze for ImportCompletionSuggestionsResponse
impl RefUnwindSafe for ImportCompletionSuggestionsResponse
impl Send for ImportCompletionSuggestionsResponse
impl Sync for ImportCompletionSuggestionsResponse
impl Unpin for ImportCompletionSuggestionsResponse
impl UnwindSafe for ImportCompletionSuggestionsResponse
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