pub struct ScalingScheduleEntry {Show 13 fields
pub autoscaling_mode: Option<AutoscalingMode>,
pub end_hour_utc: Option<i64>,
pub id: Option<Uuid>,
pub idle_scaling: Option<bool>,
pub idle_timeout_minutes: Option<i64>,
pub is_active_now: Option<bool>,
pub max_replica_memory_gb: Option<f64>,
pub max_replicas: Option<i64>,
pub min_replica_memory_gb: Option<f64>,
pub min_replicas: Option<i64>,
pub name: Option<String>,
pub start_hour_utc: Option<i64>,
pub weekdays: Option<Vec<i64>>,
}Expand description
ScalingScheduleEntry from the ClickHouse Cloud API.
Fields§
§autoscaling_mode: Option<AutoscalingMode>§end_hour_utc: Option<i64>§id: Option<Uuid>§idle_scaling: Option<bool>§idle_timeout_minutes: Option<i64>§is_active_now: Option<bool>§max_replica_memory_gb: Option<f64>§max_replicas: Option<i64>§min_replica_memory_gb: Option<f64>§min_replicas: Option<i64>§name: Option<String>§start_hour_utc: Option<i64>§weekdays: Option<Vec<i64>>Trait Implementations§
Source§impl Clone for ScalingScheduleEntry
impl Clone for ScalingScheduleEntry
Source§fn clone(&self) -> ScalingScheduleEntry
fn clone(&self) -> ScalingScheduleEntry
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 Debug for ScalingScheduleEntry
impl Debug for ScalingScheduleEntry
Source§impl Default for ScalingScheduleEntry
impl Default for ScalingScheduleEntry
Source§fn default() -> ScalingScheduleEntry
fn default() -> ScalingScheduleEntry
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ScalingScheduleEntry
impl<'de> Deserialize<'de> for ScalingScheduleEntry
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 PartialEq for ScalingScheduleEntry
impl PartialEq for ScalingScheduleEntry
Source§impl Serialize for ScalingScheduleEntry
impl Serialize for ScalingScheduleEntry
impl StructuralPartialEq for ScalingScheduleEntry
Source§impl TryFrom<ScalingScheduleEntry> for ScalingScheduleEntryRequest
impl TryFrom<ScalingScheduleEntry> for ScalingScheduleEntryRequest
Source§fn try_from(value: ScalingScheduleEntry) -> Result<Self, Self::Error>
fn try_from(value: ScalingScheduleEntry) -> Result<Self, Self::Error>
Turns a fetched schedule entry into one that can be re-sent.
An upsert replaces the whole schedule, so a caller that reads a schedule and writes it back has to send every entry in full: the window bounds, weekdays and name the API requires cannot be defaulted away.
Source§type Error = MissingRequiredFields
type Error = MissingRequiredFields
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for ScalingScheduleEntry
impl RefUnwindSafe for ScalingScheduleEntry
impl Send for ScalingScheduleEntry
impl Sync for ScalingScheduleEntry
impl Unpin for ScalingScheduleEntry
impl UnsafeUnpin for ScalingScheduleEntry
impl UnwindSafe for ScalingScheduleEntry
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