pub struct DatabasesListOptionsResponseOptionsPg {
pub layouts: Vec<DatabasesListOptionsResponseOptionsPgLayoutsItem>,
pub regions: Vec<String>,
pub versions: Vec<String>,
}Expand description
DatabasesListOptionsResponseOptionsPg
JSON schema
{
"allOf": [
{
"type": "object",
"properties": {
"regions": {
"description": "An array of strings containing the names of available regions",
"readOnly": true,
"examples": [
[
"ams3",
"blr1"
]
],
"type": "array",
"items": {
"type": "string"
}
}
}
},
{
"type": "object",
"properties": {
"versions": {
"description": "An array of strings containing the names of available regions",
"readOnly": true,
"examples": [
[
"4.4",
"5.0"
]
],
"type": "array",
"items": {
"type": "string"
}
}
}
},
{
"type": "object",
"properties": {
"layouts": {
"description": "An array of objects, each indicating the node sizes (otherwise referred to as slugs) that are available with various numbers of nodes in the database cluster. Each slugs denotes the node's identifier, CPU, and RAM (in that order).",
"readOnly": true,
"type": "array",
"items": {
"type": "object",
"properties": {
"num_nodes": {
"examples": [
1
],
"type": "integer"
},
"sizes": {
"description": "An array of objects containing the slugs available with various node counts",
"readOnly": true,
"examples": [
[
"db-s-1vcpu-1gb",
"db-s-1vcpu-2gb"
]
],
"type": "array",
"items": {
"type": "string"
}
}
}
}
}
}
}
]
}Fields§
§layouts: Vec<DatabasesListOptionsResponseOptionsPgLayoutsItem>An array of objects, each indicating the node sizes (otherwise referred to as slugs) that are available with various numbers of nodes in the database cluster. Each slugs denotes the node’s identifier, CPU, and RAM (in that order).
regions: Vec<String>An array of strings containing the names of available regions
versions: Vec<String>An array of strings containing the names of available regions
Trait Implementations§
Source§impl Clone for DatabasesListOptionsResponseOptionsPg
impl Clone for DatabasesListOptionsResponseOptionsPg
Source§fn clone(&self) -> DatabasesListOptionsResponseOptionsPg
fn clone(&self) -> DatabasesListOptionsResponseOptionsPg
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 DatabasesListOptionsResponseOptionsPg
impl<'de> Deserialize<'de> for DatabasesListOptionsResponseOptionsPg
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<&DatabasesListOptionsResponseOptionsPg> for DatabasesListOptionsResponseOptionsPg
impl From<&DatabasesListOptionsResponseOptionsPg> for DatabasesListOptionsResponseOptionsPg
Source§fn from(value: &DatabasesListOptionsResponseOptionsPg) -> Self
fn from(value: &DatabasesListOptionsResponseOptionsPg) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DatabasesListOptionsResponseOptionsPg
impl RefUnwindSafe for DatabasesListOptionsResponseOptionsPg
impl Send for DatabasesListOptionsResponseOptionsPg
impl Sync for DatabasesListOptionsResponseOptionsPg
impl Unpin for DatabasesListOptionsResponseOptionsPg
impl UnsafeUnpin for DatabasesListOptionsResponseOptionsPg
impl UnwindSafe for DatabasesListOptionsResponseOptionsPg
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