#[non_exhaustive]pub struct TestPermissionsRequest {
pub permissions: Vec<String>,
/* private fields */
}Available on crate features
addresses or autoscalers or backend-buckets or backend-services or disks or external-vpn-gateways or firewall-policies or firewalls or global-addresses or health-checks or http-health-checks or https-health-checks or images or instance-groups or instance-templates or instances or instant-snapshots or interconnect-attachment-groups or interconnect-groups or license-codes or licenses or machine-images or network-attachments or network-endpoint-groups or network-firewall-policies or node-groups or node-templates or packet-mirrorings or region-autoscalers or region-backend-services or region-disks or region-health-checks or region-instance-groups or region-instant-snapshots or region-network-firewall-policies or region-notification-endpoints or reservation-blocks or reservation-sub-blocks or reservations or resource-policies or routes or service-attachments or snapshots or storage-pools or subnetworks or target-instances or target-pools or target-ssl-proxies or target-tcp-proxies or url-maps or vpn-gateways only.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<String>The set of permissions to check for the ‘resource’. Permissions with wildcards (such as ‘’ or ‘storage.’) are not allowed.
Implementations§
Source§impl TestPermissionsRequest
impl TestPermissionsRequest
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.
§Example
ⓘ
let x = TestPermissionsRequest::new().set_permissions(["a", "b", "c"]);Trait Implementations§
Source§impl Clone for TestPermissionsRequest
impl Clone for TestPermissionsRequest
Source§fn clone(&self) -> TestPermissionsRequest
fn clone(&self) -> TestPermissionsRequest
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 TestPermissionsRequest
impl Debug for TestPermissionsRequest
Source§impl Default for TestPermissionsRequest
impl Default for TestPermissionsRequest
Source§fn default() -> TestPermissionsRequest
fn default() -> TestPermissionsRequest
Returns the “default value” for a type. Read more
Source§impl Message for TestPermissionsRequest
impl Message for TestPermissionsRequest
Source§impl PartialEq for TestPermissionsRequest
impl PartialEq for TestPermissionsRequest
impl StructuralPartialEq for TestPermissionsRequest
Auto Trait Implementations§
impl Freeze for TestPermissionsRequest
impl RefUnwindSafe for TestPermissionsRequest
impl Send for TestPermissionsRequest
impl Sync for TestPermissionsRequest
impl Unpin for TestPermissionsRequest
impl UnwindSafe for TestPermissionsRequest
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