Skip to main content

EPD

Struct EPD 

Source
pub struct EPD {
Show 40 fields pub id: String, pub name: String, pub declared_unit: Unit, pub version: String, pub published_date: DateTime<Utc>, pub valid_until: DateTime<Utc>, pub format_version: String, pub source: Option<Source>, pub reference_service_life: Option<u32>, pub standard: Standard, pub comment: Option<String>, pub location: String, pub subtype: SubType, pub conversions: Option<Vec<Conversion>>, pub gwp: Option<ImpactCategory>, pub odp: Option<ImpactCategory>, pub ap: Option<ImpactCategory>, pub ep: Option<ImpactCategory>, pub pocp: Option<ImpactCategory>, pub adpe: Option<ImpactCategory>, pub adpf: Option<ImpactCategory>, pub penre: Option<ImpactCategory>, pub pere: Option<ImpactCategory>, pub perm: Option<ImpactCategory>, pub pert: Option<ImpactCategory>, pub penrt: Option<ImpactCategory>, pub penrm: Option<ImpactCategory>, pub sm: Option<ImpactCategory>, pub rsf: Option<ImpactCategory>, pub nrsf: Option<ImpactCategory>, pub fw: Option<ImpactCategory>, pub hwd: Option<ImpactCategory>, pub nhwd: Option<ImpactCategory>, pub rwd: Option<ImpactCategory>, pub cru: Option<ImpactCategory>, pub mfr: Option<ImpactCategory>, pub mer: Option<ImpactCategory>, pub eee: Option<ImpactCategory>, pub eet: Option<ImpactCategory>, pub meta_data: Option<HashMap<String, String>>,
}

Fields§

§id: String§name: String§declared_unit: Unit§version: String§published_date: DateTime<Utc>§valid_until: DateTime<Utc>§format_version: String§source: Option<Source>§reference_service_life: Option<u32>§standard: Standard§comment: Option<String>§location: String§subtype: SubType§conversions: Option<Vec<Conversion>>§gwp: Option<ImpactCategory>§odp: Option<ImpactCategory>§ap: Option<ImpactCategory>§ep: Option<ImpactCategory>§pocp: Option<ImpactCategory>§adpe: Option<ImpactCategory>§adpf: Option<ImpactCategory>§penre: Option<ImpactCategory>§pere: Option<ImpactCategory>§perm: Option<ImpactCategory>§pert: Option<ImpactCategory>§penrt: Option<ImpactCategory>§penrm: Option<ImpactCategory>§sm: Option<ImpactCategory>§rsf: Option<ImpactCategory>§nrsf: Option<ImpactCategory>§fw: Option<ImpactCategory>§hwd: Option<ImpactCategory>§nhwd: Option<ImpactCategory>§rwd: Option<ImpactCategory>§cru: Option<ImpactCategory>§mfr: Option<ImpactCategory>§mer: Option<ImpactCategory>§eee: Option<ImpactCategory>§eet: Option<ImpactCategory>§meta_data: Option<HashMap<String, String>>

Implementations§

Source§

impl EPD

Source

pub fn new() -> Self

Trait Implementations§

Source§

impl Clone for EPD

Source§

fn clone(&self) -> EPD

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'de> Deserialize<'de> for EPD

Source§

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<&Vec<Stage>> for EPD

Source§

fn from(stages: &Vec<Stage>) -> Self

Converts to this type from the input type.
Source§

impl JsonSchema for EPD

Source§

fn schema_name() -> String

The name of the generated JSON Schema. Read more
Source§

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

Generates a JSON Schema for this type. Read more
Source§

fn is_referenceable() -> bool

Whether JSON Schemas generated for this type should be re-used where possible using the $ref keyword. Read more
Source§

impl Serialize for EPD

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

§

impl Freeze for EPD

§

impl RefUnwindSafe for EPD

§

impl Send for EPD

§

impl Sync for EPD

§

impl Unpin for EPD

§

impl UnsafeUnpin for EPD

§

impl UnwindSafe for EPD

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.