pub struct WasteSchemaConfig {
pub enabled: bool,
pub diversion_target: f64,
}Expand description
Waste management configuration.
Fields§
§enabled: boolWhether waste tracking is enabled.
diversion_target: f64Target diversion rate (0.0 to 1.0).
Trait Implementations§
Source§impl Clone for WasteSchemaConfig
impl Clone for WasteSchemaConfig
Source§fn clone(&self) -> WasteSchemaConfig
fn clone(&self) -> WasteSchemaConfig
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 WasteSchemaConfig
impl Debug for WasteSchemaConfig
Source§impl Default for WasteSchemaConfig
impl Default for WasteSchemaConfig
Source§impl<'de> Deserialize<'de> for WasteSchemaConfig
impl<'de> Deserialize<'de> for WasteSchemaConfig
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 WasteSchemaConfig
impl RefUnwindSafe for WasteSchemaConfig
impl Send for WasteSchemaConfig
impl Sync for WasteSchemaConfig
impl Unpin for WasteSchemaConfig
impl UnsafeUnpin for WasteSchemaConfig
impl UnwindSafe for WasteSchemaConfig
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