#[non_exhaustive]pub struct CreateFindingRequest {
pub parent: String,
pub finding_id: String,
pub finding: Option<Finding>,
/* private fields */
}Expand description
Request message for creating a finding.
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. Resource name of the new finding’s parent. The following list
shows some examples of the format:
+
organizations/[organization_id]/sources/[source_id]
+
organizations/[organization_id]/sources/[source_id]/locations/[location_id]
finding_id: StringRequired. Unique identifier provided by the client within the parent scope. It must be alphanumeric and less than or equal to 32 characters and greater than 0 characters in length.
finding: Option<Finding>Required. The Finding being created. The name and security_marks will be ignored as they are both output only fields on this resource.
Implementations§
Source§impl CreateFindingRequest
impl CreateFindingRequest
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_finding_id<T: Into<String>>(self, v: T) -> Self
pub fn set_finding_id<T: Into<String>>(self, v: T) -> Self
Sets the value of finding_id.
§Example
ⓘ
let x = CreateFindingRequest::new().set_finding_id("example");Sourcepub fn set_finding<T>(self, v: T) -> Self
pub fn set_finding<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_finding<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_finding<T>(self, v: Option<T>) -> Self
Trait Implementations§
Source§impl Clone for CreateFindingRequest
impl Clone for CreateFindingRequest
Source§fn clone(&self) -> CreateFindingRequest
fn clone(&self) -> CreateFindingRequest
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 CreateFindingRequest
impl Debug for CreateFindingRequest
Source§impl Default for CreateFindingRequest
impl Default for CreateFindingRequest
Source§fn default() -> CreateFindingRequest
fn default() -> CreateFindingRequest
Returns the “default value” for a type. Read more
Source§impl Message for CreateFindingRequest
impl Message for CreateFindingRequest
Source§impl PartialEq for CreateFindingRequest
impl PartialEq for CreateFindingRequest
impl StructuralPartialEq for CreateFindingRequest
Auto Trait Implementations§
impl Freeze for CreateFindingRequest
impl RefUnwindSafe for CreateFindingRequest
impl Send for CreateFindingRequest
impl Sync for CreateFindingRequest
impl Unpin for CreateFindingRequest
impl UnwindSafe for CreateFindingRequest
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