pub struct ZeroKmsServiceDiscovery;Expand description
ZeroKms service.
Implementations§
Source§impl ZeroKmsServiceDiscovery
impl ZeroKmsServiceDiscovery
Sourcepub fn region_from_host_fqdn(host_fqdn: &str) -> Result<Region, RegionError>
pub fn region_from_host_fqdn(host_fqdn: &str) -> Result<Region, RegionError>
Attempt to extract the region from a host FQDN or URL.
The FQDN must be in the format <region>.<provider>.viturhosted.net.
The URL must be in the format https://<region>.<provider>.viturhosted.net/.
Trait Implementations§
Source§impl ServiceDiscovery for ZeroKmsServiceDiscovery
impl ServiceDiscovery for ZeroKmsServiceDiscovery
Source§fn fqdn(region: Region) -> String
fn fqdn(region: Region) -> String
Returns the FQDN for the service in the given region.
The FQDN is in the format <region>.<provider>.viturhosted.net.
Source§fn endpoint(region: Region) -> Result<Url, RegionError>
fn endpoint(region: Region) -> Result<Url, RegionError>
Returns the URL for the service in the given region.
The URL is in the format https://<region>.<provider>.viturhosted.net/.
When the test_utils feature is enabled, the ZEROKMS_DISCOVERY_OVERRIDE environment
variable can be set to override the endpoint URL.
fn name(&self) -> &'static str
Auto Trait Implementations§
impl Freeze for ZeroKmsServiceDiscovery
impl RefUnwindSafe for ZeroKmsServiceDiscovery
impl Send for ZeroKmsServiceDiscovery
impl Sync for ZeroKmsServiceDiscovery
impl Unpin for ZeroKmsServiceDiscovery
impl UnsafeUnpin for ZeroKmsServiceDiscovery
impl UnwindSafe for ZeroKmsServiceDiscovery
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
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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>
Converts
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>
Converts
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 moreSource§impl<T> IntoSql for T
impl<T> IntoSql for T
Source§fn into_sql<T>(self) -> Self::Expression
fn into_sql<T>(self) -> Self::Expression
Convert
self to an expression for Diesel’s query builder. Read moreSource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
Convert
&self to an expression for Diesel’s query builder. Read more