pub struct DatabasesCreateReplicaBodyDoSettings {
pub service_cnames: Vec<DatabasesCreateReplicaBodyDoSettingsServiceCnamesItem>,
}Expand description
DatabasesCreateReplicaBodyDoSettings
JSON schema
{
"allOf": [
{
"description": "DigitalOcean-specific settings for the database cluster.",
"type": "object",
"properties": {
"service_cnames": {
"description": "An array of custom CNAMEs for the database cluster. Each CNAME must be a valid RFC 1123 hostname (e.g., \"db.example.com\"). Maximum of 16 CNAMEs allowed, each up to 253 characters.",
"examples": [
[
"db.example.com",
"database.myapp.io"
]
],
"type": "array",
"items": {
"type": "string",
"maxLength": 253,
"pattern": "^[a-zA-Z0-9]([a-zA-Z0-9-]*[a-zA-Z0-9])?(\\.[a-zA-Z0-9]([a-zA-Z0-9-]*[a-zA-Z0-9])?)+$"
},
"maxItems": 16
}
}
},
{
"description": "DigitalOcean-specific settings for the read-only replica, including custom service CNAMEs."
}
]
}Fields§
§service_cnames: Vec<DatabasesCreateReplicaBodyDoSettingsServiceCnamesItem>An array of custom CNAMEs for the database cluster. Each CNAME must be a valid RFC 1123 hostname (e.g., “db.example.com”). Maximum of 16 CNAMEs allowed, each up to 253 characters.
Trait Implementations§
Source§impl Clone for DatabasesCreateReplicaBodyDoSettings
impl Clone for DatabasesCreateReplicaBodyDoSettings
Source§fn clone(&self) -> DatabasesCreateReplicaBodyDoSettings
fn clone(&self) -> DatabasesCreateReplicaBodyDoSettings
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 DatabasesCreateReplicaBodyDoSettings
impl<'de> Deserialize<'de> for DatabasesCreateReplicaBodyDoSettings
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<&DatabasesCreateReplicaBodyDoSettings> for DatabasesCreateReplicaBodyDoSettings
impl From<&DatabasesCreateReplicaBodyDoSettings> for DatabasesCreateReplicaBodyDoSettings
Source§fn from(value: &DatabasesCreateReplicaBodyDoSettings) -> Self
fn from(value: &DatabasesCreateReplicaBodyDoSettings) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DatabasesCreateReplicaBodyDoSettings
impl RefUnwindSafe for DatabasesCreateReplicaBodyDoSettings
impl Send for DatabasesCreateReplicaBodyDoSettings
impl Sync for DatabasesCreateReplicaBodyDoSettings
impl Unpin for DatabasesCreateReplicaBodyDoSettings
impl UnsafeUnpin for DatabasesCreateReplicaBodyDoSettings
impl UnwindSafe for DatabasesCreateReplicaBodyDoSettings
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