pub struct CustomSeasonalEventConfig {
pub name: String,
pub start_month: u8,
pub start_day: u8,
pub end_month: u8,
pub end_day: u8,
pub multiplier: f64,
pub priority: u8,
}Expand description
Custom seasonal event configuration for YAML/JSON input.
Fields§
§name: StringEvent name.
start_month: u8Start month (1-12).
start_day: u8Start day of month.
end_month: u8End month (1-12).
end_day: u8End day of month.
multiplier: f64Volume multiplier.
priority: u8Priority (optional, defaults to 5).
Trait Implementations§
Source§impl Clone for CustomSeasonalEventConfig
impl Clone for CustomSeasonalEventConfig
Source§fn clone(&self) -> CustomSeasonalEventConfig
fn clone(&self) -> CustomSeasonalEventConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 CustomSeasonalEventConfig
impl Debug for CustomSeasonalEventConfig
Source§impl<'de> Deserialize<'de> for CustomSeasonalEventConfig
impl<'de> Deserialize<'de> for CustomSeasonalEventConfig
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<CustomSeasonalEventConfig> for SeasonalEvent
impl From<CustomSeasonalEventConfig> for SeasonalEvent
Source§fn from(config: CustomSeasonalEventConfig) -> Self
fn from(config: CustomSeasonalEventConfig) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CustomSeasonalEventConfig
impl RefUnwindSafe for CustomSeasonalEventConfig
impl Send for CustomSeasonalEventConfig
impl Sync for CustomSeasonalEventConfig
impl Unpin for CustomSeasonalEventConfig
impl UnwindSafe for CustomSeasonalEventConfig
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