pub enum ImpactData {
EPD(EPDReference),
GenericData(GenericDataReference),
}Variants§
EPD(EPDReference)
GenericData(GenericDataReference)
Implementations§
Source§impl ImpactData
impl ImpactData
pub fn new( _type: &str, id: Option<String>, name: String, declared_unit: Unit, version: String, published_date: NaiveDate, valid_until: NaiveDate, source: Option<Source>, reference_service_life: Option<u32>, standard: Standard, comment: Option<String>, location: Country, subtype: SubType, conversions: Option<Vec<Conversion>>, impacts: Impacts, meta_data: Option<MetaData>, ) -> Self
Trait Implementations§
Source§impl Clone for ImpactData
impl Clone for ImpactData
Source§fn clone(&self) -> ImpactData
fn clone(&self) -> ImpactData
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 Default for ImpactData
impl Default for ImpactData
Source§fn default() -> ImpactData
fn default() -> ImpactData
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ImpactData
impl<'de> Deserialize<'de> for ImpactData
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 JsonSchema for ImpactData
impl JsonSchema for ImpactData
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for ImpactData
impl PartialEq for ImpactData
Source§fn eq(&self, other: &ImpactData) -> bool
fn eq(&self, other: &ImpactData) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ImpactData
impl Serialize for ImpactData
impl StructuralPartialEq for ImpactData
Auto Trait Implementations§
impl Freeze for ImpactData
impl RefUnwindSafe for ImpactData
impl Send for ImpactData
impl Sync for ImpactData
impl Unpin for ImpactData
impl UnsafeUnpin for ImpactData
impl UnwindSafe for ImpactData
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