pub struct DatabasesGetClusterResponseDatabaseStandbyConnection {
pub database: Option<String>,
pub host: Option<String>,
pub password: Option<String>,
pub port: Option<i64>,
pub ssl: Option<bool>,
pub uri: Option<String>,
pub user: Option<String>,
}Expand description
DatabasesGetClusterResponseDatabaseStandbyConnection
JSON schema
{
"allOf": [
{
"type": "object",
"properties": {
"database": {
"description": "The name of the default database.",
"readOnly": true,
"examples": [
"defaultdb"
],
"type": "string"
},
"host": {
"description": "The FQDN pointing to the database cluster's current primary node.",
"readOnly": true,
"examples": [
"backend-do-user-19081923-0.db.ondigitalocean.com"
],
"type": "string"
},
"password": {
"description": "The randomly generated password for the default user.<br><br>Requires `database:view_credentials` scope.",
"readOnly": true,
"examples": [
"wv78n3zpz42xezdk"
],
"type": "string"
},
"port": {
"description": "The port on which the database cluster is listening.",
"readOnly": true,
"examples": [
25060
],
"type": "integer"
},
"ssl": {
"description": "A boolean value indicating if the connection should be made over SSL.",
"readOnly": true,
"examples": [
true
],
"type": "boolean"
},
"uri": {
"description": "A connection string in the format accepted by the `psql` command. This is provided as a convenience and should be able to be constructed by the other attributes.",
"readOnly": true,
"examples": [
"postgres://doadmin:wv78n3zpz42xezdk@backend-do-user-19081923-0.db.ondigitalocean.com:25060/defaultdb?sslmode=require"
],
"type": "string"
},
"user": {
"description": "The default user for the database.<br><br>Requires `database:view_credentials` scope.",
"readOnly": true,
"examples": [
"doadmin"
],
"type": "string"
}
}
},
{
"readOnly": true
}
]
}Fields§
§database: Option<String>The name of the default database.
host: Option<String>The FQDN pointing to the database cluster’s current primary node.
password: Option<String>The randomly generated password for the default user.
Requires database:view_credentials scope.
port: Option<i64>The port on which the database cluster is listening.
ssl: Option<bool>A boolean value indicating if the connection should be made over SSL.
uri: Option<String>A connection string in the format accepted by the psql command. This is provided as a convenience and should be able to be constructed by the other attributes.
user: Option<String>The default user for the database.
Requires database:view_credentials scope.
Trait Implementations§
Source§impl Clone for DatabasesGetClusterResponseDatabaseStandbyConnection
impl Clone for DatabasesGetClusterResponseDatabaseStandbyConnection
Source§fn clone(&self) -> DatabasesGetClusterResponseDatabaseStandbyConnection
fn clone(&self) -> DatabasesGetClusterResponseDatabaseStandbyConnection
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<'de> Deserialize<'de> for DatabasesGetClusterResponseDatabaseStandbyConnection
impl<'de> Deserialize<'de> for DatabasesGetClusterResponseDatabaseStandbyConnection
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 From<&DatabasesGetClusterResponseDatabaseStandbyConnection> for DatabasesGetClusterResponseDatabaseStandbyConnection
impl From<&DatabasesGetClusterResponseDatabaseStandbyConnection> for DatabasesGetClusterResponseDatabaseStandbyConnection
Source§fn from(value: &DatabasesGetClusterResponseDatabaseStandbyConnection) -> Self
fn from(value: &DatabasesGetClusterResponseDatabaseStandbyConnection) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DatabasesGetClusterResponseDatabaseStandbyConnection
impl RefUnwindSafe for DatabasesGetClusterResponseDatabaseStandbyConnection
impl Send for DatabasesGetClusterResponseDatabaseStandbyConnection
impl Sync for DatabasesGetClusterResponseDatabaseStandbyConnection
impl Unpin for DatabasesGetClusterResponseDatabaseStandbyConnection
impl UnsafeUnpin for DatabasesGetClusterResponseDatabaseStandbyConnection
impl UnwindSafe for DatabasesGetClusterResponseDatabaseStandbyConnection
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