#[non_exhaustive]pub struct GetPolicyRequest {
pub name: String,
}Expand description
Request message for GetPolicy.
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.name: StringRequired. The resource name of the policy to retrieve. Format:
policies/{attachment_point}/denypolicies/{policy_id}
Use the URL-encoded full resource name, which means that the forward-slash
character, /, must be written as %2F. For example,
policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy.
For organizations and folders, use the numeric ID in the full resource name. For projects, you can use the alphanumeric or the numeric ID.
Implementations§
Trait Implementations§
Source§impl Clone for GetPolicyRequest
impl Clone for GetPolicyRequest
Source§fn clone(&self) -> GetPolicyRequest
fn clone(&self) -> GetPolicyRequest
Returns a copy 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 GetPolicyRequest
impl Debug for GetPolicyRequest
Source§impl Default for GetPolicyRequest
impl Default for GetPolicyRequest
Source§fn default() -> GetPolicyRequest
fn default() -> GetPolicyRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GetPolicyRequestwhere
GetPolicyRequest: Default,
impl<'de> Deserialize<'de> for GetPolicyRequestwhere
GetPolicyRequest: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Message for GetPolicyRequest
impl Message for GetPolicyRequest
Source§impl PartialEq for GetPolicyRequest
impl PartialEq for GetPolicyRequest
Source§impl Serialize for GetPolicyRequest
impl Serialize for GetPolicyRequest
impl StructuralPartialEq for GetPolicyRequest
Auto Trait Implementations§
impl Freeze for GetPolicyRequest
impl RefUnwindSafe for GetPolicyRequest
impl Send for GetPolicyRequest
impl Sync for GetPolicyRequest
impl Unpin for GetPolicyRequest
impl UnwindSafe for GetPolicyRequest
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