Struct aws_sdk_appmesh::types::VirtualNodeSpec
source · #[non_exhaustive]pub struct VirtualNodeSpec {
pub service_discovery: Option<ServiceDiscovery>,
pub listeners: Option<Vec<Listener>>,
pub backends: Option<Vec<Backend>>,
pub backend_defaults: Option<BackendDefaults>,
pub logging: Option<Logging>,
}
Expand description
An object that represents the specification of a virtual node.
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.service_discovery: Option<ServiceDiscovery>
The service discovery information for the virtual node. If your virtual node does not expect ingress traffic, you can omit this parameter. If you specify a listener
, then you must specify service discovery information.
listeners: Option<Vec<Listener>>
The listener that the virtual node is expected to receive inbound traffic from. You can specify one listener.
backends: Option<Vec<Backend>>
The backends that the virtual node is expected to send outbound traffic to.
backend_defaults: Option<BackendDefaults>
A reference to an object that represents the defaults for backends.
logging: Option<Logging>
The inbound and outbound access logging information for the virtual node.
Implementations§
source§impl VirtualNodeSpec
impl VirtualNodeSpec
sourcepub fn service_discovery(&self) -> Option<&ServiceDiscovery>
pub fn service_discovery(&self) -> Option<&ServiceDiscovery>
The service discovery information for the virtual node. If your virtual node does not expect ingress traffic, you can omit this parameter. If you specify a listener
, then you must specify service discovery information.
sourcepub fn listeners(&self) -> &[Listener]
pub fn listeners(&self) -> &[Listener]
The listener that the virtual node is expected to receive inbound traffic from. You can specify one listener.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .listeners.is_none()
.
sourcepub fn backends(&self) -> &[Backend]
pub fn backends(&self) -> &[Backend]
The backends that the virtual node is expected to send outbound traffic to.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .backends.is_none()
.
sourcepub fn backend_defaults(&self) -> Option<&BackendDefaults>
pub fn backend_defaults(&self) -> Option<&BackendDefaults>
A reference to an object that represents the defaults for backends.
source§impl VirtualNodeSpec
impl VirtualNodeSpec
sourcepub fn builder() -> VirtualNodeSpecBuilder
pub fn builder() -> VirtualNodeSpecBuilder
Creates a new builder-style object to manufacture VirtualNodeSpec
.
Trait Implementations§
source§impl Clone for VirtualNodeSpec
impl Clone for VirtualNodeSpec
source§fn clone(&self) -> VirtualNodeSpec
fn clone(&self) -> VirtualNodeSpec
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for VirtualNodeSpec
impl Debug for VirtualNodeSpec
source§impl PartialEq for VirtualNodeSpec
impl PartialEq for VirtualNodeSpec
source§fn eq(&self, other: &VirtualNodeSpec) -> bool
fn eq(&self, other: &VirtualNodeSpec) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for VirtualNodeSpec
Auto Trait Implementations§
impl Freeze for VirtualNodeSpec
impl RefUnwindSafe for VirtualNodeSpec
impl Send for VirtualNodeSpec
impl Sync for VirtualNodeSpec
impl Unpin for VirtualNodeSpec
impl UnwindSafe for VirtualNodeSpec
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
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> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more