#[non_exhaustive]pub struct SecurityPolicyRuleHttpHeaderAction {
pub request_headers_to_adds: Vec<SecurityPolicyRuleHttpHeaderActionHttpHeaderOption>,
/* private fields */
}Available on crate features
organization-security-policies or region-security-policies or security-policies 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.request_headers_to_adds: Vec<SecurityPolicyRuleHttpHeaderActionHttpHeaderOption>The list of request headers to add or overwrite if they’re already present.
Implementations§
Source§impl SecurityPolicyRuleHttpHeaderAction
impl SecurityPolicyRuleHttpHeaderAction
pub fn new() -> Self
Sourcepub fn set_request_headers_to_adds<T, V>(self, v: T) -> Self
pub fn set_request_headers_to_adds<T, V>(self, v: T) -> Self
Sets the value of request_headers_to_adds.
§Example
ⓘ
use google_cloud_compute_v1::model::SecurityPolicyRuleHttpHeaderActionHttpHeaderOption;
let x = SecurityPolicyRuleHttpHeaderAction::new()
.set_request_headers_to_adds([
SecurityPolicyRuleHttpHeaderActionHttpHeaderOption::default()/* use setters */,
SecurityPolicyRuleHttpHeaderActionHttpHeaderOption::default()/* use (different) setters */,
]);Trait Implementations§
Source§impl Clone for SecurityPolicyRuleHttpHeaderAction
impl Clone for SecurityPolicyRuleHttpHeaderAction
Source§fn clone(&self) -> SecurityPolicyRuleHttpHeaderAction
fn clone(&self) -> SecurityPolicyRuleHttpHeaderAction
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 Default for SecurityPolicyRuleHttpHeaderAction
impl Default for SecurityPolicyRuleHttpHeaderAction
Source§fn default() -> SecurityPolicyRuleHttpHeaderAction
fn default() -> SecurityPolicyRuleHttpHeaderAction
Returns the “default value” for a type. Read more
Source§impl PartialEq for SecurityPolicyRuleHttpHeaderAction
impl PartialEq for SecurityPolicyRuleHttpHeaderAction
Source§fn eq(&self, other: &SecurityPolicyRuleHttpHeaderAction) -> bool
fn eq(&self, other: &SecurityPolicyRuleHttpHeaderAction) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SecurityPolicyRuleHttpHeaderAction
Auto Trait Implementations§
impl Freeze for SecurityPolicyRuleHttpHeaderAction
impl RefUnwindSafe for SecurityPolicyRuleHttpHeaderAction
impl Send for SecurityPolicyRuleHttpHeaderAction
impl Sync for SecurityPolicyRuleHttpHeaderAction
impl Unpin for SecurityPolicyRuleHttpHeaderAction
impl UnwindSafe for SecurityPolicyRuleHttpHeaderAction
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