#[non_exhaustive]pub struct CreateFrameworkAuditRequest {
pub parent: String,
pub framework_audit_id: String,
pub framework_audit: Option<FrameworkAudit>,
/* private fields */
}Expand description
The request message for [CreateFrameworkAudit][].
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 where this framework audit is created.
Supported formats are the following:
organizations/{organization_id}/locations/{location}folders/{folder_id}/locations/{location}projects/{project_id}/locations/{location}
framework_audit_id: StringOptional. The ID to use for the framework audit. The ID becomes the final component of the framework audit’s full resource name.
The ID must be between 4-63 characters, and valid characters
are \[a-z][0-9]-\.
framework_audit: Option<FrameworkAudit>Required. The framework audit to create.
Implementations§
Source§impl CreateFrameworkAuditRequest
impl CreateFrameworkAuditRequest
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
Sourcepub fn set_framework_audit_id<T: Into<String>>(self, v: T) -> Self
pub fn set_framework_audit_id<T: Into<String>>(self, v: T) -> Self
Sets the value of framework_audit_id.
§Example
ⓘ
let x = CreateFrameworkAuditRequest::new().set_framework_audit_id("example");Sourcepub fn set_framework_audit<T>(self, v: T) -> Selfwhere
T: Into<FrameworkAudit>,
pub fn set_framework_audit<T>(self, v: T) -> Selfwhere
T: Into<FrameworkAudit>,
Sets the value of framework_audit.
§Example
ⓘ
use google_cloud_cloudsecuritycompliance_v1::model::FrameworkAudit;
let x = CreateFrameworkAuditRequest::new().set_framework_audit(FrameworkAudit::default()/* use setters */);Sourcepub fn set_or_clear_framework_audit<T>(self, v: Option<T>) -> Selfwhere
T: Into<FrameworkAudit>,
pub fn set_or_clear_framework_audit<T>(self, v: Option<T>) -> Selfwhere
T: Into<FrameworkAudit>,
Sets or clears the value of framework_audit.
§Example
ⓘ
use google_cloud_cloudsecuritycompliance_v1::model::FrameworkAudit;
let x = CreateFrameworkAuditRequest::new().set_or_clear_framework_audit(Some(FrameworkAudit::default()/* use setters */));
let x = CreateFrameworkAuditRequest::new().set_or_clear_framework_audit(None::<FrameworkAudit>);Trait Implementations§
Source§impl Clone for CreateFrameworkAuditRequest
impl Clone for CreateFrameworkAuditRequest
Source§fn clone(&self) -> CreateFrameworkAuditRequest
fn clone(&self) -> CreateFrameworkAuditRequest
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 CreateFrameworkAuditRequest
impl Debug for CreateFrameworkAuditRequest
Source§impl Default for CreateFrameworkAuditRequest
impl Default for CreateFrameworkAuditRequest
Source§fn default() -> CreateFrameworkAuditRequest
fn default() -> CreateFrameworkAuditRequest
Returns the “default value” for a type. Read more
impl StructuralPartialEq for CreateFrameworkAuditRequest
Auto Trait Implementations§
impl Freeze for CreateFrameworkAuditRequest
impl RefUnwindSafe for CreateFrameworkAuditRequest
impl Send for CreateFrameworkAuditRequest
impl Sync for CreateFrameworkAuditRequest
impl Unpin for CreateFrameworkAuditRequest
impl UnwindSafe for CreateFrameworkAuditRequest
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