pub struct Commitment {
pub satisfies: Option<Iri>,
pub resource_quantity: Option<Box<Measure>>,
}Expand description
A promised economic transaction, referenced by an {@link Agreement}.
The type https://w3id.org/valueflows/ont/vf#Commitment.
Fields§
§satisfies: Option<Iri>The {@link Intent} of a {@link Proposal} that this commitment
satisfies. The value is the proposal’s URI with a
fragment
appended to identify the intent. Recommended fragments are
primary and reciprocal.
resource_quantity: Option<Box<Measure>>The amount and unit of the economic resource being committed. The unit must match the unit specified in the corresponding {@link Intent} of the proposal.
Implementations§
Trait Implementations§
Source§impl Clone for Commitment
impl Clone for Commitment
Source§fn clone(&self) -> Commitment
fn clone(&self) -> Commitment
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 Debug for Commitment
impl Debug for Commitment
Source§impl Default for Commitment
impl Default for Commitment
Source§fn default() -> Commitment
fn default() -> Commitment
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Commitment
impl<'de> Deserialize<'de> for Commitment
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl FromJson for Commitment
impl FromJson for Commitment
Source§impl PartialEq for Commitment
impl PartialEq for Commitment
Source§impl Serialize for Commitment
impl Serialize for Commitment
impl StructuralPartialEq for Commitment
Auto Trait Implementations§
impl Freeze for Commitment
impl RefUnwindSafe for Commitment
impl Send for Commitment
impl Sync for Commitment
impl Unpin for Commitment
impl UnsafeUnpin for Commitment
impl UnwindSafe for Commitment
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