#[non_exhaustive]pub struct InterconnectMacsec {
pub fail_open: Option<bool>,
pub pre_shared_keys: Vec<InterconnectMacsecPreSharedKey>,
/* private fields */
}interconnects only.Expand description
Configuration information for enabling Media Access Control security (MACsec) on this Cloud Interconnect connection between Google and your on-premises router.
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.fail_open: Option<bool>If set to true, the Interconnect connection is configured with ashould-secure MACsec security policy, that allows the Google router to fallback to cleartext traffic if the MKA session cannot be established. By default, the Interconnect connection is configured with amust-secure security policy that drops all traffic if the MKA session cannot be established with your router.
Required. A keychain placeholder describing a set of named key objects along with their start times. A MACsec CKN/CAK is generated for each key in the key chain. Google router automatically picks the key with the most recent startTime when establishing or re-establishing a MACsec secure link.
Implementations§
Source§impl InterconnectMacsec
impl InterconnectMacsec
Sourcepub fn set_fail_open<T>(self, v: T) -> Self
pub fn set_fail_open<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_fail_open<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_fail_open<T>(self, v: Option<T>) -> Self
Sets the value of pre_shared_keys.
§Example
use google_cloud_compute_v1::model::InterconnectMacsecPreSharedKey;
let x = InterconnectMacsec::new()
.set_pre_shared_keys([
InterconnectMacsecPreSharedKey::default()/* use setters */,
InterconnectMacsecPreSharedKey::default()/* use (different) setters */,
]);Trait Implementations§
Source§impl Clone for InterconnectMacsec
impl Clone for InterconnectMacsec
Source§fn clone(&self) -> InterconnectMacsec
fn clone(&self) -> InterconnectMacsec
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 InterconnectMacsec
impl Debug for InterconnectMacsec
Source§impl Default for InterconnectMacsec
impl Default for InterconnectMacsec
Source§fn default() -> InterconnectMacsec
fn default() -> InterconnectMacsec
Source§impl Message for InterconnectMacsec
impl Message for InterconnectMacsec
Source§impl PartialEq for InterconnectMacsec
impl PartialEq for InterconnectMacsec
impl StructuralPartialEq for InterconnectMacsec
Auto Trait Implementations§
impl Freeze for InterconnectMacsec
impl RefUnwindSafe for InterconnectMacsec
impl Send for InterconnectMacsec
impl Sync for InterconnectMacsec
impl Unpin for InterconnectMacsec
impl UnsafeUnpin for InterconnectMacsec
impl UnwindSafe for InterconnectMacsec
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