#[non_exhaustive]pub struct GetClusterCredentialsOutput {
pub db_user: Option<String>,
pub db_password: Option<String>,
pub expiration: Option<DateTime>,
}
Expand description
Temporary credentials with authorization to log on to an Amazon Redshift database.
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.db_user: Option<String>
A database user name that is authorized to log on to the database DbName
using the password DbPassword
. If the specified DbUser exists in the database, the new user name has the same database permissions as the the user named in DbUser. By default, the user is added to PUBLIC. If the DbGroups
parameter is specifed, DbUser
is added to the listed groups for any sessions created using these credentials.
db_password: Option<String>
A temporary password that authorizes the user name returned by DbUser
to log on to the database DbName
.
expiration: Option<DateTime>
The date and time the password in DbPassword
expires.
Implementations
sourceimpl GetClusterCredentialsOutput
impl GetClusterCredentialsOutput
sourcepub fn db_user(&self) -> Option<&str>
pub fn db_user(&self) -> Option<&str>
A database user name that is authorized to log on to the database DbName
using the password DbPassword
. If the specified DbUser exists in the database, the new user name has the same database permissions as the the user named in DbUser. By default, the user is added to PUBLIC. If the DbGroups
parameter is specifed, DbUser
is added to the listed groups for any sessions created using these credentials.
sourcepub fn db_password(&self) -> Option<&str>
pub fn db_password(&self) -> Option<&str>
A temporary password that authorizes the user name returned by DbUser
to log on to the database DbName
.
sourcepub fn expiration(&self) -> Option<&DateTime>
pub fn expiration(&self) -> Option<&DateTime>
The date and time the password in DbPassword
expires.
sourceimpl GetClusterCredentialsOutput
impl GetClusterCredentialsOutput
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture GetClusterCredentialsOutput
.
Trait Implementations
sourceimpl Clone for GetClusterCredentialsOutput
impl Clone for GetClusterCredentialsOutput
sourcefn clone(&self) -> GetClusterCredentialsOutput
fn clone(&self) -> GetClusterCredentialsOutput
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for GetClusterCredentialsOutput
impl Debug for GetClusterCredentialsOutput
sourceimpl PartialEq<GetClusterCredentialsOutput> for GetClusterCredentialsOutput
impl PartialEq<GetClusterCredentialsOutput> for GetClusterCredentialsOutput
sourcefn eq(&self, other: &GetClusterCredentialsOutput) -> bool
fn eq(&self, other: &GetClusterCredentialsOutput) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &GetClusterCredentialsOutput) -> bool
fn ne(&self, other: &GetClusterCredentialsOutput) -> bool
This method tests for !=
.
impl StructuralPartialEq for GetClusterCredentialsOutput
Auto Trait Implementations
impl RefUnwindSafe for GetClusterCredentialsOutput
impl Send for GetClusterCredentialsOutput
impl Sync for GetClusterCredentialsOutput
impl Unpin for GetClusterCredentialsOutput
impl UnwindSafe for GetClusterCredentialsOutput
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more