pub enum RedshiftCredentials {
Password {
password: String,
},
Iam {
region: Option<String>,
cluster_identifier: Option<String>,
db_user: Option<String>,
},
RedshiftDataApi {
region: Option<String>,
cluster_identifier: Option<String>,
workgroup_name: Option<String>,
secret_arn: Option<String>,
db_user: Option<String>,
},
}Expand description
How to authenticate with Amazon Redshift.
Serializes as { type: <method>, config: { … } } (adjacent tagging,
snake_case discriminators) — the consistent auth wire shape shared by every
faucet connector.
v1 implements only RedshiftCredentials::Password. The Iam and
RedshiftDataApi variants are accepted by the config parser (so a future
version can add them without a breaking change) but currently return a typed
FaucetError::Config at client-build
time.
Variants§
Password
Username/password authentication (the user comes from
RedshiftConnection::user). The only mechanism supported in v1.
Iam
IAM authentication via temporary cluster credentials
(GetClusterCredentials). Not yet supported — reserved for a future
version; building a client with this variant returns a typed error.
Fields
RedshiftDataApi
Authentication through the Redshift Data API (HTTP, not the PG wire). Not yet supported — reserved for a future version; building a client with this variant returns a typed error.
Fields
Trait Implementations§
Source§impl Clone for RedshiftCredentials
impl Clone for RedshiftCredentials
Source§fn clone(&self) -> RedshiftCredentials
fn clone(&self) -> RedshiftCredentials
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RedshiftCredentials
impl Debug for RedshiftCredentials
Source§impl<'de> Deserialize<'de> for RedshiftCredentials
impl<'de> Deserialize<'de> for RedshiftCredentials
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<RedshiftCredentials, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RedshiftCredentials, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for RedshiftCredentials
impl JsonSchema for RedshiftCredentials
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl Serialize for RedshiftCredentials
impl Serialize for RedshiftCredentials
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Auto Trait Implementations§
impl Freeze for RedshiftCredentials
impl RefUnwindSafe for RedshiftCredentials
impl Send for RedshiftCredentials
impl Sync for RedshiftCredentials
impl Unpin for RedshiftCredentials
impl UnsafeUnpin for RedshiftCredentials
impl UnwindSafe for RedshiftCredentials
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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