pub struct UsageLimitsConfig {
pub disabled: Option<bool>,
pub style: Option<String>,
pub warn_threshold: Option<f64>,
pub warn_style: Option<String>,
pub critical_threshold: Option<f64>,
pub critical_style: Option<String>,
pub format: Option<String>,
pub five_hour_format: Option<String>,
pub seven_day_format: Option<String>,
pub separator: Option<String>,
}Expand description
Configuration for [cship.usage_limits].
Story 5.1 defines the struct; Stories 5.2 and 5.3 implement the render logic.
Fields§
§disabled: Option<bool>§style: Option<String>§warn_threshold: Option<f64>§warn_style: Option<String>§critical_threshold: Option<f64>§critical_style: Option<String>§format: Option<String>Reserved — not yet rendered. Use five_hour_format, seven_day_format,
and separator for per-section format control.
five_hour_format: Option<String>§seven_day_format: Option<String>§separator: Option<String>Trait Implementations§
Source§impl Debug for UsageLimitsConfig
impl Debug for UsageLimitsConfig
Source§impl Default for UsageLimitsConfig
impl Default for UsageLimitsConfig
Source§fn default() -> UsageLimitsConfig
fn default() -> UsageLimitsConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UsageLimitsConfig
impl<'de> Deserialize<'de> for UsageLimitsConfig
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
Auto Trait Implementations§
impl Freeze for UsageLimitsConfig
impl RefUnwindSafe for UsageLimitsConfig
impl Send for UsageLimitsConfig
impl Sync for UsageLimitsConfig
impl Unpin for UsageLimitsConfig
impl UnsafeUnpin for UsageLimitsConfig
impl UnwindSafe for UsageLimitsConfig
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