#[non_exhaustive]pub struct Wire {
pub admin_enabled: Option<bool>,
pub endpoints: Vec<WireEndpoint>,
pub label: Option<String>,
pub wire_properties: Option<WireProperties>,
/* private fields */
}wire-groups only.Expand description
A pseudowire that connects two Interconnect connections.
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.admin_enabled: Option<bool>Output only. [Output Only] Indicates whether the wire is enabled. When false, the wire is disabled. When true and when the wire group of the wire is also enabled, the wire is enabled. Defaults to true.
endpoints: Vec<WireEndpoint>Output only. Wire endpoints are specific Interconnect connections.
label: Option<String>Output only. [Output Only] A label that identifies the wire. The format of this label
combines the existing labels of the wire group endpoints and Interconnect
connections used by this wire in alphabetical order as follows:
ENDPOINT_A+CONNECTION_A1,ENDPOINT_B+CONNECTION_B1, where:
- ENDPOINT_A and ENDPOINT_B: are the labels that you entered as map keys when you specified the wire group endpoint objects.
- CONNECTION_A1 and CONNECTION_B1: are the labels that you entered as map keys when you specified the wire group Interconnect objects.
wire_properties: Option<WireProperties>Output only. [Output Only] Properties of the wire.
Implementations§
Source§impl Wire
impl Wire
Sourcepub fn set_admin_enabled<T>(self, v: T) -> Self
pub fn set_admin_enabled<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_admin_enabled<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_admin_enabled<T>(self, v: Option<T>) -> Self
Sets or clears the value of admin_enabled.
§Example
let x = Wire::new().set_or_clear_admin_enabled(Some(false));
let x = Wire::new().set_or_clear_admin_enabled(None::<bool>);Sourcepub fn set_endpoints<T, V>(self, v: T) -> Self
pub fn set_endpoints<T, V>(self, v: T) -> Self
Sourcepub fn set_or_clear_label<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_label<T>(self, v: Option<T>) -> Self
Sourcepub fn set_wire_properties<T>(self, v: T) -> Selfwhere
T: Into<WireProperties>,
pub fn set_wire_properties<T>(self, v: T) -> Selfwhere
T: Into<WireProperties>,
Sets the value of wire_properties.
§Example
use google_cloud_compute_v1::model::WireProperties;
let x = Wire::new().set_wire_properties(WireProperties::default()/* use setters */);Sourcepub fn set_or_clear_wire_properties<T>(self, v: Option<T>) -> Selfwhere
T: Into<WireProperties>,
pub fn set_or_clear_wire_properties<T>(self, v: Option<T>) -> Selfwhere
T: Into<WireProperties>,
Sets or clears the value of wire_properties.
§Example
use google_cloud_compute_v1::model::WireProperties;
let x = Wire::new().set_or_clear_wire_properties(Some(WireProperties::default()/* use setters */));
let x = Wire::new().set_or_clear_wire_properties(None::<WireProperties>);Trait Implementations§
impl StructuralPartialEq for Wire
Auto Trait Implementations§
impl Freeze for Wire
impl RefUnwindSafe for Wire
impl Send for Wire
impl Sync for Wire
impl Unpin for Wire
impl UnsafeUnpin for Wire
impl UnwindSafe for Wire
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