#[non_exhaustive]pub struct ListUserLicensesRequest {
pub parent: String,
pub page_size: i32,
pub page_token: String,
pub filter: String,
/* private fields */
}Available on crate feature
user-license-service only.Expand description
Request message for UserLicenseService.ListUserLicenses.
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.parent: StringRequired. The parent [UserStore][] resource name, format:
projects/{project}/locations/{location}/userStores/{user_store_id}.
page_size: i32Optional. Requested page size. Server may return fewer items than requested. If unspecified, defaults to 10. The maximum value is 50; values above 50 will be coerced to 50.
If this field is negative, an INVALID_ARGUMENT error is returned.
page_token: StringOptional. A page token, received from a previous ListUserLicenses call.
Provide this to retrieve the subsequent page.
When paginating, all other parameters provided to ListUserLicenses
must match the call that provided the page token.
filter: StringOptional. Filter for the list request.
Supported fields:
license_assignment_state
Examples:
license_assignment_state = ASSIGNEDto list assigned user licenses.license_assignment_state = NO_LICENSEto list not licensed users.license_assignment_state = NO_LICENSE_ATTEMPTED_LOGINto list users who attempted login but no license assigned.license_assignment_state != NO_LICENSE_ATTEMPTED_LOGINto filter out users who attempted login but no license assigned.
Implementations§
Source§impl ListUserLicensesRequest
impl ListUserLicensesRequest
pub fn new() -> Self
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_page_size<T: Into<i32>>(self, v: T) -> Self
pub fn set_page_size<T: Into<i32>>(self, v: T) -> Self
Sourcepub fn set_page_token<T: Into<String>>(self, v: T) -> Self
pub fn set_page_token<T: Into<String>>(self, v: T) -> Self
Sets the value of page_token.
§Example
ⓘ
let x = ListUserLicensesRequest::new().set_page_token("example");Trait Implementations§
Source§impl Clone for ListUserLicensesRequest
impl Clone for ListUserLicensesRequest
Source§fn clone(&self) -> ListUserLicensesRequest
fn clone(&self) -> ListUserLicensesRequest
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 ListUserLicensesRequest
impl Debug for ListUserLicensesRequest
Source§impl Default for ListUserLicensesRequest
impl Default for ListUserLicensesRequest
Source§fn default() -> ListUserLicensesRequest
fn default() -> ListUserLicensesRequest
Returns the “default value” for a type. Read more
Source§impl Message for ListUserLicensesRequest
impl Message for ListUserLicensesRequest
Source§impl PartialEq for ListUserLicensesRequest
impl PartialEq for ListUserLicensesRequest
impl StructuralPartialEq for ListUserLicensesRequest
Auto Trait Implementations§
impl Freeze for ListUserLicensesRequest
impl RefUnwindSafe for ListUserLicensesRequest
impl Send for ListUserLicensesRequest
impl Sync for ListUserLicensesRequest
impl Unpin for ListUserLicensesRequest
impl UnwindSafe for ListUserLicensesRequest
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