#[non_exhaustive]pub struct TestIamPermissionsRequest {
pub project: String,
pub resource: String,
pub zone: String,
pub body: Option<TestPermissionsRequest>,
/* private fields */
}Available on crate feature
instance-groups only.Expand description
Synthetic request message for the testIamPermissions() 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.project: StringProject ID for this request.
resource: StringName or id of the resource for this request.
zone: StringThe name of the zone for this request.
body: Option<TestPermissionsRequest>Synthetic request body field for the testIamPermissions() method.
Implementations§
Source§impl TestIamPermissionsRequest
impl TestIamPermissionsRequest
pub fn new() -> Self
Sourcepub fn set_project<T: Into<String>>(self, v: T) -> Self
pub fn set_project<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_resource<T: Into<String>>(self, v: T) -> Self
pub fn set_resource<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_body<T>(self, v: T) -> Selfwhere
T: Into<TestPermissionsRequest>,
pub fn set_body<T>(self, v: T) -> Selfwhere
T: Into<TestPermissionsRequest>,
Sourcepub fn set_or_clear_body<T>(self, v: Option<T>) -> Selfwhere
T: Into<TestPermissionsRequest>,
pub fn set_or_clear_body<T>(self, v: Option<T>) -> Selfwhere
T: Into<TestPermissionsRequest>,
Sets or clears the value of body.
§Example
ⓘ
use google_cloud_compute_v1::model::TestPermissionsRequest;
let x = TestIamPermissionsRequest::new().set_or_clear_body(Some(TestPermissionsRequest::default()/* use setters */));
let x = TestIamPermissionsRequest::new().set_or_clear_body(None::<TestPermissionsRequest>);Trait Implementations§
Source§impl Clone for TestIamPermissionsRequest
impl Clone for TestIamPermissionsRequest
Source§fn clone(&self) -> TestIamPermissionsRequest
fn clone(&self) -> TestIamPermissionsRequest
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 TestIamPermissionsRequest
impl Debug for TestIamPermissionsRequest
Source§impl Default for TestIamPermissionsRequest
impl Default for TestIamPermissionsRequest
Source§fn default() -> TestIamPermissionsRequest
fn default() -> TestIamPermissionsRequest
Returns the “default value” for a type. Read more
impl StructuralPartialEq for TestIamPermissionsRequest
Auto Trait Implementations§
impl Freeze for TestIamPermissionsRequest
impl RefUnwindSafe for TestIamPermissionsRequest
impl Send for TestIamPermissionsRequest
impl Sync for TestIamPermissionsRequest
impl Unpin for TestIamPermissionsRequest
impl UnwindSafe for TestIamPermissionsRequest
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