#[non_exhaustive]pub struct SecurityPolicyReference {
pub security_policy: Option<String>,
/* private fields */
}Available on crate features
backend-buckets or backend-services or region-backend-services or target-instances or target-pools only.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.security_policy: Option<String>Implementations§
Source§impl SecurityPolicyReference
impl SecurityPolicyReference
pub fn new() -> Self
Sourcepub fn set_security_policy<T>(self, v: T) -> Self
pub fn set_security_policy<T>(self, v: T) -> Self
Sets the value of security_policy.
§Example
ⓘ
let x = SecurityPolicyReference::new().set_security_policy("example");Sourcepub fn set_or_clear_security_policy<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_security_policy<T>(self, v: Option<T>) -> Self
Sets or clears the value of security_policy.
§Example
ⓘ
let x = SecurityPolicyReference::new().set_or_clear_security_policy(Some("example"));
let x = SecurityPolicyReference::new().set_or_clear_security_policy(None::<String>);Trait Implementations§
Source§impl Clone for SecurityPolicyReference
impl Clone for SecurityPolicyReference
Source§fn clone(&self) -> SecurityPolicyReference
fn clone(&self) -> SecurityPolicyReference
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 SecurityPolicyReference
impl Debug for SecurityPolicyReference
Source§impl Default for SecurityPolicyReference
impl Default for SecurityPolicyReference
Source§fn default() -> SecurityPolicyReference
fn default() -> SecurityPolicyReference
Returns the “default value” for a type. Read more
Source§impl Message for SecurityPolicyReference
impl Message for SecurityPolicyReference
Source§impl PartialEq for SecurityPolicyReference
impl PartialEq for SecurityPolicyReference
impl StructuralPartialEq for SecurityPolicyReference
Auto Trait Implementations§
impl Freeze for SecurityPolicyReference
impl RefUnwindSafe for SecurityPolicyReference
impl Send for SecurityPolicyReference
impl Sync for SecurityPolicyReference
impl Unpin for SecurityPolicyReference
impl UnwindSafe for SecurityPolicyReference
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