#[non_exhaustive]pub struct InterconnectMacsecPreSharedKey {
pub name: Option<String>,
pub start_time: Option<String>,
/* private fields */
}interconnects only.Expand description
Describes a pre-shared key used to setup MACsec in static connectivity association key (CAK) mode.
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: Option<String>Required. A name for this pre-shared key.
The name must be 1-63 characters long, and comply withRFC1035. Specifically, the name must be 1-63
characters long and match the regular expression
[a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a
lowercase letter, and all following characters must be a dash,
lowercase letter, or digit, except the last character, which cannot be
a dash.
start_time: Option<String>A RFC3339 timestamp on or after which the key is valid. startTime can be in the future. If the keychain has a single key, startTime can be omitted. If the keychain has multiple keys, startTime is mandatory for each key. The start times of keys must be in increasing order. The start times of two consecutive keys must be at least 6 hours apart.
Implementations§
pub fn new() -> Self
Sourcepub fn set_or_clear_name<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_name<T>(self, v: Option<T>) -> Self
Sourcepub fn set_start_time<T>(self, v: T) -> Self
pub fn set_start_time<T>(self, v: T) -> Self
Sets the value of start_time.
§Example
let x = InterconnectMacsecPreSharedKey::new().set_start_time("example");Sourcepub fn set_or_clear_start_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_start_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of start_time.
§Example
let x = InterconnectMacsecPreSharedKey::new().set_or_clear_start_time(Some("example"));
let x = InterconnectMacsecPreSharedKey::new().set_or_clear_start_time(None::<String>);Trait Implementations§
Source§fn clone(&self) -> InterconnectMacsecPreSharedKey
fn clone(&self) -> InterconnectMacsecPreSharedKey
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§fn default() -> InterconnectMacsecPreSharedKey
fn default() -> InterconnectMacsecPreSharedKey
Source§fn eq(&self, other: &InterconnectMacsecPreSharedKey) -> bool
fn eq(&self, other: &InterconnectMacsecPreSharedKey) -> bool
self and other values to be equal, and is used by ==.