#[non_exhaustive]pub struct Parameter {
pub name: String,
pub parameter_value: Option<Box<ParamValue>>,
/* private fields */
}Expand description
Parameters are key-value pairs that let you provide your custom location requirements, environment requirements, or other settings that are relevant to the cloud control.
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 name or key of the parameter.
parameter_value: Option<Box<ParamValue>>Required. The value of the parameter.
Implementations§
Source§impl Parameter
impl Parameter
pub fn new() -> Self
Sourcepub fn set_parameter_value<T>(self, v: T) -> Selfwhere
T: Into<ParamValue>,
pub fn set_parameter_value<T>(self, v: T) -> Selfwhere
T: Into<ParamValue>,
Sets the value of parameter_value.
§Example
ⓘ
use google_cloud_cloudsecuritycompliance_v1::model::ParamValue;
let x = Parameter::new().set_parameter_value(ParamValue::default()/* use setters */);Sourcepub fn set_or_clear_parameter_value<T>(self, v: Option<T>) -> Selfwhere
T: Into<ParamValue>,
pub fn set_or_clear_parameter_value<T>(self, v: Option<T>) -> Selfwhere
T: Into<ParamValue>,
Sets or clears the value of parameter_value.
§Example
ⓘ
use google_cloud_cloudsecuritycompliance_v1::model::ParamValue;
let x = Parameter::new().set_or_clear_parameter_value(Some(ParamValue::default()/* use setters */));
let x = Parameter::new().set_or_clear_parameter_value(None::<ParamValue>);Trait Implementations§
impl StructuralPartialEq for Parameter
Auto Trait Implementations§
impl Freeze for Parameter
impl RefUnwindSafe for Parameter
impl Send for Parameter
impl Sync for Parameter
impl Unpin for Parameter
impl UnwindSafe for Parameter
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