#[non_exhaustive]
pub enum MqBrokerAccessCredentials {
BasicAuth(String),
Unknown,
}
Expand description
The Secrets Manager secret that stores your broker credentials.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
BasicAuth(String)
The ARN of the Secrets Manager secret.
Unknown
The Unknown
variant represents cases where new union variant was received. Consider upgrading the SDK to the latest available version.
An unknown enum variant
Note: If you encounter this error, consider upgrading your SDK to the latest version.
The Unknown
variant represents cases where the server sent a value that wasn’t recognized
by the client. This can happen when the server adds new functionality, but the client has not been updated.
To investigate this, consider turning on debug logging to print the raw HTTP response.
Implementations§
source§impl MqBrokerAccessCredentials
impl MqBrokerAccessCredentials
sourcepub fn as_basic_auth(&self) -> Result<&String, &Self>
pub fn as_basic_auth(&self) -> Result<&String, &Self>
sourcepub fn is_basic_auth(&self) -> bool
pub fn is_basic_auth(&self) -> bool
Returns true if this is a BasicAuth
.
sourcepub fn is_unknown(&self) -> bool
pub fn is_unknown(&self) -> bool
Returns true if the enum instance is the Unknown
variant.
Trait Implementations§
source§impl Clone for MqBrokerAccessCredentials
impl Clone for MqBrokerAccessCredentials
source§fn clone(&self) -> MqBrokerAccessCredentials
fn clone(&self) -> MqBrokerAccessCredentials
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 MqBrokerAccessCredentials
impl Debug for MqBrokerAccessCredentials
source§impl PartialEq<MqBrokerAccessCredentials> for MqBrokerAccessCredentials
impl PartialEq<MqBrokerAccessCredentials> for MqBrokerAccessCredentials
source§fn eq(&self, other: &MqBrokerAccessCredentials) -> bool
fn eq(&self, other: &MqBrokerAccessCredentials) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.