#[non_exhaustive]pub enum PluginAuthConfiguration {
BasicAuthConfiguration(BasicAuthConfiguration),
OAuth2ClientCredentialConfiguration(OAuth2ClientCredentialConfiguration),
Unknown,
}Expand description
Authentication configuration information for an Amazon Q plugin.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
BasicAuthConfiguration(BasicAuthConfiguration)
Information about the basic authentication credentials used to configure a plugin.
OAuth2ClientCredentialConfiguration(OAuth2ClientCredentialConfiguration)
Information about the OAuth 2.0 authentication credential/token used to configure a plugin.
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 PluginAuthConfiguration
impl PluginAuthConfiguration
sourcepub fn as_basic_auth_configuration(
&self
) -> Result<&BasicAuthConfiguration, &Self>
pub fn as_basic_auth_configuration( &self ) -> Result<&BasicAuthConfiguration, &Self>
Tries to convert the enum instance into BasicAuthConfiguration, extracting the inner BasicAuthConfiguration.
Returns Err(&Self) if it can’t be converted.
sourcepub fn is_basic_auth_configuration(&self) -> bool
pub fn is_basic_auth_configuration(&self) -> bool
Returns true if this is a BasicAuthConfiguration.
sourcepub fn as_o_auth2_client_credential_configuration(
&self
) -> Result<&OAuth2ClientCredentialConfiguration, &Self>
pub fn as_o_auth2_client_credential_configuration( &self ) -> Result<&OAuth2ClientCredentialConfiguration, &Self>
Tries to convert the enum instance into OAuth2ClientCredentialConfiguration, extracting the inner OAuth2ClientCredentialConfiguration.
Returns Err(&Self) if it can’t be converted.
sourcepub fn is_o_auth2_client_credential_configuration(&self) -> bool
pub fn is_o_auth2_client_credential_configuration(&self) -> bool
Returns true if this is a OAuth2ClientCredentialConfiguration.
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 PluginAuthConfiguration
impl Clone for PluginAuthConfiguration
source§fn clone(&self) -> PluginAuthConfiguration
fn clone(&self) -> PluginAuthConfiguration
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for PluginAuthConfiguration
impl Debug for PluginAuthConfiguration
source§impl PartialEq for PluginAuthConfiguration
impl PartialEq for PluginAuthConfiguration
source§fn eq(&self, other: &PluginAuthConfiguration) -> bool
fn eq(&self, other: &PluginAuthConfiguration) -> bool
self and other values to be equal, and is used
by ==.