#[non_exhaustive]pub struct QueryTestablePermissionsResponse {
pub permissions: Vec<Permission>,
pub next_page_token: String,
/* private fields */
}Expand description
The response containing permissions which can be tested on a resource.
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.permissions: Vec<Permission>The Permissions testable on the requested resource.
next_page_token: StringTo retrieve the next page of results, set
QueryTestableRolesRequest.page_token to this value.
Implementations§
Source§impl QueryTestablePermissionsResponse
impl QueryTestablePermissionsResponse
pub fn new() -> Self
Sourcepub fn set_permissions<T, V>(self, v: T) -> Self
pub fn set_permissions<T, V>(self, v: T) -> Self
Sets the value of permissions.
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.
Trait Implementations§
Source§impl Clone for QueryTestablePermissionsResponse
impl Clone for QueryTestablePermissionsResponse
Source§fn clone(&self) -> QueryTestablePermissionsResponse
fn clone(&self) -> QueryTestablePermissionsResponse
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 QueryTestablePermissionsResponse
impl Default for QueryTestablePermissionsResponse
Source§fn default() -> QueryTestablePermissionsResponse
fn default() -> QueryTestablePermissionsResponse
Returns the “default value” for a type. Read more
Source§impl PartialEq for QueryTestablePermissionsResponse
impl PartialEq for QueryTestablePermissionsResponse
Source§fn eq(&self, other: &QueryTestablePermissionsResponse) -> bool
fn eq(&self, other: &QueryTestablePermissionsResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for QueryTestablePermissionsResponse
Auto Trait Implementations§
impl Freeze for QueryTestablePermissionsResponse
impl RefUnwindSafe for QueryTestablePermissionsResponse
impl Send for QueryTestablePermissionsResponse
impl Sync for QueryTestablePermissionsResponse
impl Unpin for QueryTestablePermissionsResponse
impl UnwindSafe for QueryTestablePermissionsResponse
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