Struct acme_gateways::config::GatewayConfig
source · pub struct GatewayConfig {
pub access_key: String,
pub endpoint: String,
pub region: String,
/* private fields */
}Fields§
§access_key: String§endpoint: String§region: StringImplementations§
source§impl GatewayConfig
impl GatewayConfig
pub fn new(
access_key: String,
secret_key: String,
endpoint: String,
region: String
) -> Self
pub fn build() -> ConfigResult<Self>
pub fn partial_env(
access_key: Option<&str>,
secret_key: Option<&str>,
endpoint: String,
region: String
) -> AsyncResult<Self>
pub fn credentials(&self) -> Credentials
pub fn region(&self) -> Region
Trait Implementations§
source§impl Clone for GatewayConfig
impl Clone for GatewayConfig
source§fn clone(&self) -> GatewayConfig
fn clone(&self) -> GatewayConfig
Returns a copy of the value. Read more
1.0.0 · 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 GatewayConfig
impl Debug for GatewayConfig
source§impl Default for GatewayConfig
impl Default for GatewayConfig
source§impl<'de> Deserialize<'de> for GatewayConfig
impl<'de> Deserialize<'de> for GatewayConfig
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<&GatewayCreds> for GatewayConfig
impl From<&GatewayCreds> for GatewayConfig
source§fn from(data: &GatewayCreds) -> Self
fn from(data: &GatewayCreds) -> Self
Converts to this type from the input type.
source§impl From<&S3Region> for GatewayConfig
impl From<&S3Region> for GatewayConfig
source§impl Hash for GatewayConfig
impl Hash for GatewayConfig
source§impl PartialEq<GatewayConfig> for GatewayConfig
impl PartialEq<GatewayConfig> for GatewayConfig
source§fn eq(&self, other: &GatewayConfig) -> bool
fn eq(&self, other: &GatewayConfig) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for GatewayConfig
impl Serialize for GatewayConfig
impl Eq for GatewayConfig
impl StructuralEq for GatewayConfig
impl StructuralPartialEq for GatewayConfig
Auto Trait Implementations§
impl RefUnwindSafe for GatewayConfig
impl Send for GatewayConfig
impl Sync for GatewayConfig
impl Unpin for GatewayConfig
impl UnwindSafe for GatewayConfig
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.