#[non_exhaustive]pub enum UserPassword {
PasswordSecretVersion(String),
AutoIamAuthn(bool),
}Expand description
Credentials for the database connection.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
PasswordSecretVersion(String)
Optional. The resource name of the Secret Manager secret holding the
password for the user to log into the database. The secret should be
created using the regional endpoint (for API) or from the Regional
Secrets page (for UI), and stored in the same region as the Cloud SQL
instance. The expected resource name format is
projects/{project}/locations/{location}/secrets/{secret}/versions/{secret_version}.
Used together with the user field.
The secret resource name will not be stored.
AutoIamAuthn(bool)
Optional. When set to true, the API caller identity associated with the
request is used for database authentication. The API caller must be an
IAM user in the database.
Trait Implementations§
Source§impl Clone for UserPassword
impl Clone for UserPassword
Source§fn clone(&self) -> UserPassword
fn clone(&self) -> UserPassword
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UserPassword
impl Debug for UserPassword
Source§impl PartialEq for UserPassword
impl PartialEq for UserPassword
impl StructuralPartialEq for UserPassword
Auto Trait Implementations§
impl Freeze for UserPassword
impl RefUnwindSafe for UserPassword
impl Send for UserPassword
impl Sync for UserPassword
impl Unpin for UserPassword
impl UnsafeUnpin for UserPassword
impl UnwindSafe for UserPassword
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
Mutably borrows from an owned value. Read more