Struct aws_sdk_directconnect::types::Location
source · #[non_exhaustive]pub struct Location {
pub location_code: Option<String>,
pub location_name: Option<String>,
pub region: Option<String>,
pub available_port_speeds: Option<Vec<String>>,
pub available_providers: Option<Vec<String>>,
pub available_mac_sec_port_speeds: Option<Vec<String>>,
}Expand description
Information about an Direct Connect location.
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.location_code: Option<String>The code for the location.
location_name: Option<String>The name of the location. This includes the name of the colocation partner and the physical site of the building.
region: Option<String>The Amazon Web Services Region for the location.
available_port_speeds: Option<Vec<String>>The available port speeds for the location.
available_providers: Option<Vec<String>>The name of the service provider for the location.
available_mac_sec_port_speeds: Option<Vec<String>>The available MAC Security (MACsec) port speeds for the location.
Implementations§
source§impl Location
impl Location
sourcepub fn location_code(&self) -> Option<&str>
pub fn location_code(&self) -> Option<&str>
The code for the location.
sourcepub fn location_name(&self) -> Option<&str>
pub fn location_name(&self) -> Option<&str>
The name of the location. This includes the name of the colocation partner and the physical site of the building.
sourcepub fn available_port_speeds(&self) -> &[String]
pub fn available_port_speeds(&self) -> &[String]
The available port speeds for the location.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .available_port_speeds.is_none().
sourcepub fn available_providers(&self) -> &[String]
pub fn available_providers(&self) -> &[String]
The name of the service provider for the location.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .available_providers.is_none().
sourcepub fn available_mac_sec_port_speeds(&self) -> &[String]
pub fn available_mac_sec_port_speeds(&self) -> &[String]
The available MAC Security (MACsec) port speeds for the location.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .available_mac_sec_port_speeds.is_none().
Trait Implementations§
source§impl PartialEq for Location
impl PartialEq for Location
impl StructuralPartialEq for Location
Auto Trait Implementations§
impl Freeze for Location
impl RefUnwindSafe for Location
impl Send for Location
impl Sync for Location
impl Unpin for Location
impl UnwindSafe for Location
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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