#[non_exhaustive]pub struct GatewaySecurityPolicy {
pub name: String,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub description: String,
pub tls_inspection_policy: String,
/* private fields */
}Expand description
The GatewaySecurityPolicy resource contains a collection of GatewaySecurityPolicyRules and associated metadata.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringRequired. Name of the resource. Name is of the form projects/{project}/locations/{location}/gatewaySecurityPolicies/{gateway_security_policy} gateway_security_policy should match the pattern:(^a-z?$).
create_time: Option<Timestamp>Output only. The timestamp when the resource was created.
update_time: Option<Timestamp>Output only. The timestamp when the resource was updated.
description: StringOptional. Free-text description of the resource.
tls_inspection_policy: StringOptional. Name of a TLS Inspection Policy resource that defines how TLS inspection will be performed for any rule(s) which enables it.
Implementations§
Source§impl GatewaySecurityPolicy
impl GatewaySecurityPolicy
Sourcepub fn set_create_time<T>(self, v: T) -> Self
pub fn set_create_time<T>(self, v: T) -> Self
Sets the value of create_time.
§Example
use wkt::Timestamp;
let x = GatewaySecurityPolicy::new().set_create_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of create_time.
§Example
use wkt::Timestamp;
let x = GatewaySecurityPolicy::new().set_or_clear_create_time(Some(Timestamp::default()/* use setters */));
let x = GatewaySecurityPolicy::new().set_or_clear_create_time(None::<Timestamp>);Sourcepub fn set_update_time<T>(self, v: T) -> Self
pub fn set_update_time<T>(self, v: T) -> Self
Sets the value of update_time.
§Example
use wkt::Timestamp;
let x = GatewaySecurityPolicy::new().set_update_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of update_time.
§Example
use wkt::Timestamp;
let x = GatewaySecurityPolicy::new().set_or_clear_update_time(Some(Timestamp::default()/* use setters */));
let x = GatewaySecurityPolicy::new().set_or_clear_update_time(None::<Timestamp>);Sourcepub fn set_description<T: Into<String>>(self, v: T) -> Self
pub fn set_description<T: Into<String>>(self, v: T) -> Self
Sets the value of description.
§Example
let x = GatewaySecurityPolicy::new().set_description("example");Sourcepub fn set_tls_inspection_policy<T: Into<String>>(self, v: T) -> Self
pub fn set_tls_inspection_policy<T: Into<String>>(self, v: T) -> Self
Sets the value of tls_inspection_policy.
§Example
let x = GatewaySecurityPolicy::new().set_tls_inspection_policy(format!("projects/{project_id}/locations/{location_id}/tlsInspectionPolicies/{tls_inspection_policy_id}"));Trait Implementations§
Source§impl Clone for GatewaySecurityPolicy
impl Clone for GatewaySecurityPolicy
Source§fn clone(&self) -> GatewaySecurityPolicy
fn clone(&self) -> GatewaySecurityPolicy
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GatewaySecurityPolicy
impl Debug for GatewaySecurityPolicy
Source§impl Default for GatewaySecurityPolicy
impl Default for GatewaySecurityPolicy
Source§fn default() -> GatewaySecurityPolicy
fn default() -> GatewaySecurityPolicy
Source§impl Message for GatewaySecurityPolicy
impl Message for GatewaySecurityPolicy
Source§impl PartialEq for GatewaySecurityPolicy
impl PartialEq for GatewaySecurityPolicy
impl StructuralPartialEq for GatewaySecurityPolicy
Auto Trait Implementations§
impl Freeze for GatewaySecurityPolicy
impl RefUnwindSafe for GatewaySecurityPolicy
impl Send for GatewaySecurityPolicy
impl Sync for GatewaySecurityPolicy
impl Unpin for GatewaySecurityPolicy
impl UnsafeUnpin for GatewaySecurityPolicy
impl UnwindSafe for GatewaySecurityPolicy
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request