pub struct DatabasesCreateClusterBodyAutoscaleStorage {
pub enabled: bool,
pub increment_gib: Option<i64>,
pub threshold_percent: Option<i64>,
}Expand description
DatabasesCreateClusterBodyAutoscaleStorage
JSON schema
{
"allOf": [
{
"description": "Configuration for database cluster storage autoscaling",
"type": "object",
"required": [
"enabled"
],
"properties": {
"enabled": {
"description": "Whether storage autoscaling is enabled for the cluster",
"examples": [
true
],
"type": "boolean"
},
"increment_gib": {
"description": "The amount of additional storage to add (in GiB) when autoscaling is triggered",
"examples": [
10
],
"type": "integer",
"maximum": 500.0,
"minimum": 10.0
},
"threshold_percent": {
"description": "The storage usage threshold percentage that triggers autoscaling. When storage usage exceeds this percentage, additional storage will be added automatically.",
"examples": [
80
],
"type": "integer",
"maximum": 95.0,
"minimum": 15.0
}
}
},
{
"description": "Storage autoscaling configuration"
}
]
}Fields§
§enabled: boolWhether storage autoscaling is enabled for the cluster
increment_gib: Option<i64>The amount of additional storage to add (in GiB) when autoscaling is triggered
threshold_percent: Option<i64>The storage usage threshold percentage that triggers autoscaling. When storage usage exceeds this percentage, additional storage will be added automatically.
Trait Implementations§
Source§impl Clone for DatabasesCreateClusterBodyAutoscaleStorage
impl Clone for DatabasesCreateClusterBodyAutoscaleStorage
Source§fn clone(&self) -> DatabasesCreateClusterBodyAutoscaleStorage
fn clone(&self) -> DatabasesCreateClusterBodyAutoscaleStorage
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 DatabasesCreateClusterBodyAutoscaleStorage
impl<'de> Deserialize<'de> for DatabasesCreateClusterBodyAutoscaleStorage
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<&DatabasesCreateClusterBodyAutoscaleStorage> for DatabasesCreateClusterBodyAutoscaleStorage
impl From<&DatabasesCreateClusterBodyAutoscaleStorage> for DatabasesCreateClusterBodyAutoscaleStorage
Source§fn from(value: &DatabasesCreateClusterBodyAutoscaleStorage) -> Self
fn from(value: &DatabasesCreateClusterBodyAutoscaleStorage) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DatabasesCreateClusterBodyAutoscaleStorage
impl RefUnwindSafe for DatabasesCreateClusterBodyAutoscaleStorage
impl Send for DatabasesCreateClusterBodyAutoscaleStorage
impl Sync for DatabasesCreateClusterBodyAutoscaleStorage
impl Unpin for DatabasesCreateClusterBodyAutoscaleStorage
impl UnsafeUnpin for DatabasesCreateClusterBodyAutoscaleStorage
impl UnwindSafe for DatabasesCreateClusterBodyAutoscaleStorage
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