pub struct RoutingHost {
pub service: String,
pub region: String,
pub bucket: Option<String>,
}Expand description
Service + region (and optional bucket) decoded from a Host header.
Covers both the LocalStack hostname convention
(<service>.<region>.localhost.localstack.cloud[:port],
<bucket>.s3.<region>.localhost.localstack.cloud[:port]) and real AWS
service hostnames (<service>.<region>.amazonaws.com, S3 path-style
and virtual-hosted-style including the legacy no-region
s3.amazonaws.com / <bucket>.s3.amazonaws.com forms and the older
dash-separated s3-<region>.amazonaws.com form).
Fields§
§service: String§region: String§bucket: Option<String>Set only for virtual-hosted-style S3 hostnames.
Trait Implementations§
Source§impl Clone for RoutingHost
impl Clone for RoutingHost
Source§fn clone(&self) -> RoutingHost
fn clone(&self) -> RoutingHost
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RoutingHost
impl Debug for RoutingHost
Source§impl PartialEq for RoutingHost
impl PartialEq for RoutingHost
Source§fn eq(&self, other: &RoutingHost) -> bool
fn eq(&self, other: &RoutingHost) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for RoutingHost
impl StructuralPartialEq for RoutingHost
Auto Trait Implementations§
impl Freeze for RoutingHost
impl RefUnwindSafe for RoutingHost
impl Send for RoutingHost
impl Sync for RoutingHost
impl Unpin for RoutingHost
impl UnsafeUnpin for RoutingHost
impl UnwindSafe for RoutingHost
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
Mutably borrows from an owned value. Read more