pub struct ClusterExternalClustersPassword {
pub key: String,
pub name: Option<String>,
pub optional: Option<bool>,
}
Expand description
The reference to the password to be used to connect to the server. If a password is provided, CloudNativePG creates a PostgreSQL passfile at /controller/external/NAME/pass
(where “NAME” is the cluster’s name). This passfile is automatically referenced in the connection string when establishing a connection to the remote PostgreSQL server from the current PostgreSQL Cluster
. This ensures secure and efficient password management for external clusters.
Fields§
§key: String
The key of the secret to select from. Must be a valid secret key.
name: Option<String>
Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?
optional: Option<bool>
Specify whether the Secret or its key must be defined
Trait Implementations§
source§impl Clone for ClusterExternalClustersPassword
impl Clone for ClusterExternalClustersPassword
source§fn clone(&self) -> ClusterExternalClustersPassword
fn clone(&self) -> ClusterExternalClustersPassword
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Default for ClusterExternalClustersPassword
impl Default for ClusterExternalClustersPassword
source§fn default() -> ClusterExternalClustersPassword
fn default() -> ClusterExternalClustersPassword
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ClusterExternalClustersPassword
impl<'de> Deserialize<'de> for ClusterExternalClustersPassword
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl JsonSchema for ClusterExternalClustersPassword
impl JsonSchema for ClusterExternalClustersPassword
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moreAuto Trait Implementations§
impl RefUnwindSafe for ClusterExternalClustersPassword
impl Send for ClusterExternalClustersPassword
impl Sync for ClusterExternalClustersPassword
impl Unpin for ClusterExternalClustersPassword
impl UnwindSafe for ClusterExternalClustersPassword
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