#[non_exhaustive]pub struct ExtractPostureRequest {
pub parent: String,
pub posture_id: String,
pub workload: String,
/* private fields */
}Expand description
Message for extracting existing policies on a workload as a Posture.
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.parent: StringRequired. The parent resource name. The format of this value is as follows:
organizations/{organization}/locations/{location}
posture_id: StringRequired. User provided identifier. It should be unique in scope of an Organization and location.
workload: StringRequired. Workload from which the policies are to be extracted, it should belong to the same organization defined in parent. The format of this value varies depending on the scope of the request:
folder/folderNumberproject/projectNumberorganization/organizationNumber
Implementations§
Source§impl ExtractPostureRequest
impl ExtractPostureRequest
pub fn new() -> Self
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sets the value of parent.
Sourcepub fn set_posture_id<T: Into<String>>(self, v: T) -> Self
pub fn set_posture_id<T: Into<String>>(self, v: T) -> Self
Sets the value of posture_id.
Sourcepub fn set_workload<T: Into<String>>(self, v: T) -> Self
pub fn set_workload<T: Into<String>>(self, v: T) -> Self
Sets the value of workload.
Trait Implementations§
Source§impl Clone for ExtractPostureRequest
impl Clone for ExtractPostureRequest
Source§fn clone(&self) -> ExtractPostureRequest
fn clone(&self) -> ExtractPostureRequest
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 ExtractPostureRequest
impl Debug for ExtractPostureRequest
Source§impl Default for ExtractPostureRequest
impl Default for ExtractPostureRequest
Source§fn default() -> ExtractPostureRequest
fn default() -> ExtractPostureRequest
Returns the “default value” for a type. Read more
Source§impl Message for ExtractPostureRequest
impl Message for ExtractPostureRequest
Source§impl PartialEq for ExtractPostureRequest
impl PartialEq for ExtractPostureRequest
impl StructuralPartialEq for ExtractPostureRequest
Auto Trait Implementations§
impl Freeze for ExtractPostureRequest
impl RefUnwindSafe for ExtractPostureRequest
impl Send for ExtractPostureRequest
impl Sync for ExtractPostureRequest
impl Unpin for ExtractPostureRequest
impl UnwindSafe for ExtractPostureRequest
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