#[non_exhaustive]pub struct SearchEntitlementsResponse {
pub entitlements: Vec<Entitlement>,
pub next_page_token: String,
/* private fields */
}Expand description
Response message for SearchEntitlements 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.entitlements: Vec<Entitlement>The list of entitlements.
next_page_token: StringA token identifying a page of results the server should return.
Implementations§
Source§impl SearchEntitlementsResponse
impl SearchEntitlementsResponse
Sourcepub fn set_entitlements<T, V>(self, v: T) -> Self
pub fn set_entitlements<T, V>(self, v: T) -> Self
Sets the value of entitlements.
§Example
ⓘ
use google_cloud_privilegedaccessmanager_v1::model::Entitlement;
let x = SearchEntitlementsResponse::new()
.set_entitlements([
Entitlement::default()/* use setters */,
Entitlement::default()/* use (different) setters */,
]);Sourcepub fn set_next_page_token<T: Into<String>>(self, v: T) -> Self
pub fn set_next_page_token<T: Into<String>>(self, v: T) -> Self
Sets the value of next_page_token.
§Example
ⓘ
let x = SearchEntitlementsResponse::new().set_next_page_token("example");Trait Implementations§
Source§impl Clone for SearchEntitlementsResponse
impl Clone for SearchEntitlementsResponse
Source§fn clone(&self) -> SearchEntitlementsResponse
fn clone(&self) -> SearchEntitlementsResponse
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 SearchEntitlementsResponse
impl Debug for SearchEntitlementsResponse
Source§impl Default for SearchEntitlementsResponse
impl Default for SearchEntitlementsResponse
Source§fn default() -> SearchEntitlementsResponse
fn default() -> SearchEntitlementsResponse
Returns the “default value” for a type. Read more
Source§impl Message for SearchEntitlementsResponse
impl Message for SearchEntitlementsResponse
impl StructuralPartialEq for SearchEntitlementsResponse
Auto Trait Implementations§
impl Freeze for SearchEntitlementsResponse
impl RefUnwindSafe for SearchEntitlementsResponse
impl Send for SearchEntitlementsResponse
impl Sync for SearchEntitlementsResponse
impl Unpin for SearchEntitlementsResponse
impl UnsafeUnpin for SearchEntitlementsResponse
impl UnwindSafe for SearchEntitlementsResponse
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