#[non_exhaustive]pub struct TestPermissionsResponse {
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>A subset of TestPermissionsRequest.permissions that the caller is
allowed.
Implementations§
Source§impl TestPermissionsResponse
impl TestPermissionsResponse
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 = TestPermissionsResponse::new().set_permissions(["a", "b", "c"]);Trait Implementations§
Source§impl Clone for TestPermissionsResponse
impl Clone for TestPermissionsResponse
Source§fn clone(&self) -> TestPermissionsResponse
fn clone(&self) -> TestPermissionsResponse
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 TestPermissionsResponse
impl Debug for TestPermissionsResponse
Source§impl Default for TestPermissionsResponse
impl Default for TestPermissionsResponse
Source§fn default() -> TestPermissionsResponse
fn default() -> TestPermissionsResponse
Returns the “default value” for a type. Read more
Source§impl Message for TestPermissionsResponse
impl Message for TestPermissionsResponse
Source§impl PartialEq for TestPermissionsResponse
impl PartialEq for TestPermissionsResponse
impl StructuralPartialEq for TestPermissionsResponse
Auto Trait Implementations§
impl Freeze for TestPermissionsResponse
impl RefUnwindSafe for TestPermissionsResponse
impl Send for TestPermissionsResponse
impl Sync for TestPermissionsResponse
impl Unpin for TestPermissionsResponse
impl UnwindSafe for TestPermissionsResponse
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