pub struct StorageAutoscalingConfig {
pub scale_factor: Option<f64>,
pub scale_threshold: Option<f64>,
pub scale_threshold_available_mb: Option<i64>,
}Expand description
Storage autoscaling policy: expand storage from storage_mb_min toward
storage_mb_max as it fills up.
JSON schema
{
"description": "Storage autoscaling policy: expand storage from `storage_mb_min` toward\n`storage_mb_max` as it fills up.",
"type": "object",
"properties": {
"scale_factor": {
"description": "Expansion multiplier. Defaults to 2.0.",
"type": [
"number",
"null"
],
"format": "double"
},
"scale_threshold": {
"description": "Usage fraction that triggers expansion. Defaults to 0.8.",
"type": [
"number",
"null"
],
"format": "double"
},
"scale_threshold_available_mb": {
"description": "Expand storage when available space falls below this many MB, even if\nusage is still under `scale_threshold`. Either condition triggers\nexpansion. Unset by default.",
"type": [
"integer",
"null"
],
"format": "int64",
"minimum": 0.0
}
}
}Fields§
§scale_factor: Option<f64>Expansion multiplier. Defaults to 2.0.
scale_threshold: Option<f64>Usage fraction that triggers expansion. Defaults to 0.8.
scale_threshold_available_mb: Option<i64>Expand storage when available space falls below this many MB, even if
usage is still under scale_threshold. Either condition triggers
expansion. Unset by default.
Implementations§
Source§impl StorageAutoscalingConfig
impl StorageAutoscalingConfig
pub fn builder() -> StorageAutoscalingConfig
Trait Implementations§
Source§impl Clone for StorageAutoscalingConfig
impl Clone for StorageAutoscalingConfig
Source§impl Debug for StorageAutoscalingConfig
impl Debug for StorageAutoscalingConfig
Source§impl Default for StorageAutoscalingConfig
impl Default for StorageAutoscalingConfig
Source§impl<'de> Deserialize<'de> for StorageAutoscalingConfig
impl<'de> Deserialize<'de> for StorageAutoscalingConfig
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<&StorageAutoscalingConfig> for StorageAutoscalingConfig
impl From<&StorageAutoscalingConfig> for StorageAutoscalingConfig
Source§fn from(value: &StorageAutoscalingConfig) -> Self
fn from(value: &StorageAutoscalingConfig) -> Self
Converts to this type from the input type.
Source§impl From<StorageAutoscalingConfig> for StorageAutoscalingConfig
impl From<StorageAutoscalingConfig> for StorageAutoscalingConfig
Source§fn from(value: StorageAutoscalingConfig) -> Self
fn from(value: StorageAutoscalingConfig) -> Self
Converts to this type from the input type.
Source§impl Serialize for StorageAutoscalingConfig
impl Serialize for StorageAutoscalingConfig
Source§impl TryFrom<StorageAutoscalingConfig> for StorageAutoscalingConfig
impl TryFrom<StorageAutoscalingConfig> for StorageAutoscalingConfig
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: StorageAutoscalingConfig) -> Result<Self, ConversionError>
fn try_from(value: StorageAutoscalingConfig) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for StorageAutoscalingConfig
impl RefUnwindSafe for StorageAutoscalingConfig
impl Send for StorageAutoscalingConfig
impl Sync for StorageAutoscalingConfig
impl Unpin for StorageAutoscalingConfig
impl UnsafeUnpin for StorageAutoscalingConfig
impl UnwindSafe for StorageAutoscalingConfig
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