pub enum PluginName {
PingCredentialsProvider,
OktaCredentialsProvider,
BrowserSamlCredentialsProvider,
BrowserAzureCredentialsProvider,
AzureCredentialsProvider,
AdfsCredentialsProvider,
CustomCredentialsProvider,
UnknownCredentialsProvider,
}Expand description
Identifies the SAML provider plugin to use when an IdP host is present in the connection URI.
The Plugin_Name query parameter in the JDBC URI is parsed into one of these
variants. The optional com.amazon.redshift.plugin. prefix is stripped
automatically, so both "PingCredentialsProvider" and
"com.amazon.redshift.plugin.PingCredentialsProvider" resolve to
PluginName::PingCredentialsProvider.
Only PluginName::PingCredentialsProvider has a built-in factory.
All other variants require a factory to be registered via register_provider
before calling read_sql.
Variants§
PingCredentialsProvider
PingFederate IdP (built-in — backed by PingCredentialsProvider).
OktaCredentialsProvider
Okta IdP.
BrowserSamlCredentialsProvider
Browser-based SAML flow.
BrowserAzureCredentialsProvider
Browser-based Azure AD SAML flow.
AzureCredentialsProvider
Azure AD IdP.
AdfsCredentialsProvider
ADFS IdP.
CustomCredentialsProvider
User-defined custom provider.
UnknownCredentialsProvider
Fallback for unrecognised Plugin_Name values.
Trait Implementations§
Source§impl Clone for PluginName
impl Clone for PluginName
Source§fn clone(&self) -> PluginName
fn clone(&self) -> PluginName
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PluginName
impl Debug for PluginName
Source§impl From<&str> for PluginName
impl From<&str> for PluginName
Source§fn from(s: &str) -> Self
fn from(s: &str) -> Self
Converts a Plugin_Name URI parameter value to a PluginName variant.
The optional com.amazon.redshift.plugin. package prefix is stripped
before matching. Comparison is case-insensitive. Unrecognised strings
map to PluginName::UnknownCredentialsProvider.
Source§impl Hash for PluginName
impl Hash for PluginName
Source§impl PartialEq for PluginName
impl PartialEq for PluginName
impl Eq for PluginName
impl StructuralPartialEq for PluginName
Auto Trait Implementations§
impl Freeze for PluginName
impl RefUnwindSafe for PluginName
impl Send for PluginName
impl Sync for PluginName
impl Unpin for PluginName
impl UnsafeUnpin for PluginName
impl UnwindSafe for PluginName
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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>
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>
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 more