#[non_exhaustive]pub struct RedshiftDatabaseCredentials {
pub username: String,
pub password: String,
}
Expand description
Describes the database credentials for connecting to a database on an Amazon Redshift cluster.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.username: String
A username to be used by Amazon Machine Learning (Amazon ML)to connect to a database on an Amazon Redshift cluster. The username should have sufficient permissions to execute the RedshiftSelectSqlQuery
query. The username should be valid for an Amazon Redshift USER.
password: String
A password to be used by Amazon ML to connect to a database on an Amazon Redshift cluster. The password should have sufficient permissions to execute a RedshiftSelectSqlQuery
query. The password should be valid for an Amazon Redshift USER.
Implementations§
source§impl RedshiftDatabaseCredentials
impl RedshiftDatabaseCredentials
sourcepub fn username(&self) -> &str
pub fn username(&self) -> &str
A username to be used by Amazon Machine Learning (Amazon ML)to connect to a database on an Amazon Redshift cluster. The username should have sufficient permissions to execute the RedshiftSelectSqlQuery
query. The username should be valid for an Amazon Redshift USER.
source§impl RedshiftDatabaseCredentials
impl RedshiftDatabaseCredentials
sourcepub fn builder() -> RedshiftDatabaseCredentialsBuilder
pub fn builder() -> RedshiftDatabaseCredentialsBuilder
Creates a new builder-style object to manufacture RedshiftDatabaseCredentials
.
Trait Implementations§
source§impl Clone for RedshiftDatabaseCredentials
impl Clone for RedshiftDatabaseCredentials
source§fn clone(&self) -> RedshiftDatabaseCredentials
fn clone(&self) -> RedshiftDatabaseCredentials
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RedshiftDatabaseCredentials
impl Debug for RedshiftDatabaseCredentials
source§impl PartialEq for RedshiftDatabaseCredentials
impl PartialEq for RedshiftDatabaseCredentials
source§fn eq(&self, other: &RedshiftDatabaseCredentials) -> bool
fn eq(&self, other: &RedshiftDatabaseCredentials) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for RedshiftDatabaseCredentials
Auto Trait Implementations§
impl Freeze for RedshiftDatabaseCredentials
impl RefUnwindSafe for RedshiftDatabaseCredentials
impl Send for RedshiftDatabaseCredentials
impl Sync for RedshiftDatabaseCredentials
impl Unpin for RedshiftDatabaseCredentials
impl UnwindSafe for RedshiftDatabaseCredentials
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> 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