#[non_exhaustive]pub struct BatchUpdateUserLicensesResponse {
pub user_licenses: Vec<UserLicense>,
pub error_samples: Vec<Status>,
/* private fields */
}Available on crate feature
user-license-service only.Expand description
Response message for UserLicenseService.BatchUpdateUserLicenses method.
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.user_licenses: Vec<UserLicense>UserLicenses successfully updated.
error_samples: Vec<Status>A sample of errors encountered while processing the request.
Implementations§
Source§impl BatchUpdateUserLicensesResponse
impl BatchUpdateUserLicensesResponse
pub fn new() -> Self
Sourcepub fn set_user_licenses<T, V>(self, v: T) -> Self
pub fn set_user_licenses<T, V>(self, v: T) -> Self
Sets the value of user_licenses.
§Example
ⓘ
use google_cloud_discoveryengine_v1::model::UserLicense;
let x = BatchUpdateUserLicensesResponse::new()
.set_user_licenses([
UserLicense::default()/* use setters */,
UserLicense::default()/* use (different) setters */,
]);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 = BatchUpdateUserLicensesResponse::new()
.set_error_samples([
Status::default()/* use setters */,
Status::default()/* use (different) setters */,
]);Trait Implementations§
Source§impl Clone for BatchUpdateUserLicensesResponse
impl Clone for BatchUpdateUserLicensesResponse
Source§fn clone(&self) -> BatchUpdateUserLicensesResponse
fn clone(&self) -> BatchUpdateUserLicensesResponse
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 BatchUpdateUserLicensesResponse
impl Default for BatchUpdateUserLicensesResponse
Source§fn default() -> BatchUpdateUserLicensesResponse
fn default() -> BatchUpdateUserLicensesResponse
Returns the “default value” for a type. Read more
Source§impl PartialEq for BatchUpdateUserLicensesResponse
impl PartialEq for BatchUpdateUserLicensesResponse
Source§fn eq(&self, other: &BatchUpdateUserLicensesResponse) -> bool
fn eq(&self, other: &BatchUpdateUserLicensesResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BatchUpdateUserLicensesResponse
Auto Trait Implementations§
impl Freeze for BatchUpdateUserLicensesResponse
impl RefUnwindSafe for BatchUpdateUserLicensesResponse
impl Send for BatchUpdateUserLicensesResponse
impl Sync for BatchUpdateUserLicensesResponse
impl Unpin for BatchUpdateUserLicensesResponse
impl UnwindSafe for BatchUpdateUserLicensesResponse
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