#[non_exhaustive]pub struct BatchUpdateUserLicensesRequest {
pub parent: String,
pub delete_unassigned_user_licenses: bool,
pub source: Option<Source>,
/* private fields */
}user-license-service only.Expand description
Request message for UserLicenseService.BatchUpdateUserLicenses method.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.parent: StringRequired. The parent [UserStore][] resource name, format:
projects/{project}/locations/{location}/userStores/{user_store_id}.
delete_unassigned_user_licenses: boolOptional. If true, if user licenses removed associated license config, the user license will be deleted. By default which is false, the user license will be updated to unassigned state.
source: Option<Source>Required. The source of the input.
Implementations§
Source§impl BatchUpdateUserLicensesRequest
impl BatchUpdateUserLicensesRequest
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_delete_unassigned_user_licenses<T: Into<bool>>(self, v: T) -> Self
pub fn set_delete_unassigned_user_licenses<T: Into<bool>>(self, v: T) -> Self
Sets the value of delete_unassigned_user_licenses.
§Example
let x = BatchUpdateUserLicensesRequest::new().set_delete_unassigned_user_licenses(true);Sourcepub fn set_source<T: Into<Option<Source>>>(self, v: T) -> Self
pub fn set_source<T: Into<Option<Source>>>(self, v: T) -> Self
Sets the value of source.
Note that all the setters affecting source are mutually
exclusive.
§Example
use google_cloud_discoveryengine_v1::model::batch_update_user_licenses_request::InlineSource;
let x = BatchUpdateUserLicensesRequest::new().set_source(Some(
google_cloud_discoveryengine_v1::model::batch_update_user_licenses_request::Source::InlineSource(InlineSource::default().into())));Sourcepub fn inline_source(&self) -> Option<&Box<InlineSource>>
pub fn inline_source(&self) -> Option<&Box<InlineSource>>
The value of source
if it holds a InlineSource, None if the field is not set or
holds a different branch.
Sourcepub fn set_inline_source<T: Into<Box<InlineSource>>>(self, v: T) -> Self
pub fn set_inline_source<T: Into<Box<InlineSource>>>(self, v: T) -> Self
Sets the value of source
to hold a InlineSource.
Note that all the setters affecting source are
mutually exclusive.
§Example
use google_cloud_discoveryengine_v1::model::batch_update_user_licenses_request::InlineSource;
let x = BatchUpdateUserLicensesRequest::new().set_inline_source(InlineSource::default()/* use setters */);
assert!(x.inline_source().is_some());Trait Implementations§
Source§impl Clone for BatchUpdateUserLicensesRequest
impl Clone for BatchUpdateUserLicensesRequest
Source§fn clone(&self) -> BatchUpdateUserLicensesRequest
fn clone(&self) -> BatchUpdateUserLicensesRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for BatchUpdateUserLicensesRequest
impl Default for BatchUpdateUserLicensesRequest
Source§fn default() -> BatchUpdateUserLicensesRequest
fn default() -> BatchUpdateUserLicensesRequest
impl StructuralPartialEq for BatchUpdateUserLicensesRequest
Auto Trait Implementations§
impl Freeze for BatchUpdateUserLicensesRequest
impl RefUnwindSafe for BatchUpdateUserLicensesRequest
impl Send for BatchUpdateUserLicensesRequest
impl Sync for BatchUpdateUserLicensesRequest
impl Unpin for BatchUpdateUserLicensesRequest
impl UnsafeUnpin for BatchUpdateUserLicensesRequest
impl UnwindSafe for BatchUpdateUserLicensesRequest
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request