pub struct WasteRecord {
pub id: String,
pub entity_id: String,
pub facility_id: String,
pub period: NaiveDate,
pub waste_type: WasteType,
pub disposal_method: DisposalMethod,
pub quantity_tonnes: Decimal,
pub is_diverted_from_landfill: bool,
}Expand description
Waste generation record for a facility.
Fields§
§id: String§entity_id: String§facility_id: String§period: NaiveDate§waste_type: WasteType§disposal_method: DisposalMethod§quantity_tonnes: Decimal§is_diverted_from_landfill: boolImplementations§
Source§impl WasteRecord
impl WasteRecord
Sourcepub fn computed_diversion(&self) -> bool
pub fn computed_diversion(&self) -> bool
Whether the waste was diverted from landfill.
Trait Implementations§
Source§impl Clone for WasteRecord
impl Clone for WasteRecord
Source§fn clone(&self) -> WasteRecord
fn clone(&self) -> WasteRecord
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 WasteRecord
impl Debug for WasteRecord
Source§impl<'de> Deserialize<'de> for WasteRecord
impl<'de> Deserialize<'de> for WasteRecord
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 Serialize for WasteRecord
impl Serialize for WasteRecord
Source§impl ToNodeProperties for WasteRecord
impl ToNodeProperties for WasteRecord
Source§fn node_type_name(&self) -> &'static str
fn node_type_name(&self) -> &'static str
Entity type name (snake_case), e.g.
"uncertain_tax_position".Source§fn node_type_code(&self) -> u16
fn node_type_code(&self) -> u16
Numeric entity type code for registry, e.g.
416.Source§fn to_node_properties(&self) -> HashMap<String, GraphPropertyValue>
fn to_node_properties(&self) -> HashMap<String, GraphPropertyValue>
Convert all fields to a property map with camelCase keys.
Auto Trait Implementations§
impl Freeze for WasteRecord
impl RefUnwindSafe for WasteRecord
impl Send for WasteRecord
impl Sync for WasteRecord
impl Unpin for WasteRecord
impl UnsafeUnpin for WasteRecord
impl UnwindSafe for WasteRecord
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