#[non_exhaustive]pub struct CustomOutputSpec {
pub properties: Vec<Property>,
/* private fields */
}Expand description
A set of optional name-value pairs that define custom source properties to
return with each finding that is generated by the custom module. The custom
source properties that are defined here are included in the finding JSON
under sourceProperties.
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.properties: Vec<Property>Optional. A list of custom output properties to add to the finding.
Implementations§
Source§impl CustomOutputSpec
impl CustomOutputSpec
pub fn new() -> Self
Sourcepub fn set_properties<T, V>(self, v: T) -> Self
pub fn set_properties<T, V>(self, v: T) -> Self
Sets the value of properties.
§Example
ⓘ
use google_cloud_securityposture_v1::model::custom_config::custom_output_spec::Property;
let x = CustomOutputSpec::new()
.set_properties([
Property::default()/* use setters */,
Property::default()/* use (different) setters */,
]);Trait Implementations§
Source§impl Clone for CustomOutputSpec
impl Clone for CustomOutputSpec
Source§fn clone(&self) -> CustomOutputSpec
fn clone(&self) -> CustomOutputSpec
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 CustomOutputSpec
impl Debug for CustomOutputSpec
Source§impl Default for CustomOutputSpec
impl Default for CustomOutputSpec
Source§fn default() -> CustomOutputSpec
fn default() -> CustomOutputSpec
Returns the “default value” for a type. Read more
Source§impl Message for CustomOutputSpec
impl Message for CustomOutputSpec
Source§impl PartialEq for CustomOutputSpec
impl PartialEq for CustomOutputSpec
impl StructuralPartialEq for CustomOutputSpec
Auto Trait Implementations§
impl Freeze for CustomOutputSpec
impl RefUnwindSafe for CustomOutputSpec
impl Send for CustomOutputSpec
impl Sync for CustomOutputSpec
impl Unpin for CustomOutputSpec
impl UnwindSafe for CustomOutputSpec
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