[−][src]Struct vf_rs::vf::Satisfaction
Represents many-to-many relationships between intents and commitments or events that partially or full satisfy one or more intents.
ID: https://w3id.org/valueflows#Satisfaction
Implementations
impl<COMMITMENT, ECONOMICEVENT, INTENT> Satisfaction<COMMITMENT, ECONOMICEVENT, INTENT>
[src]
pub fn effort_quantity(&self) -> &Option<Measure>
[src]
The amount and unit of the work or use or citation effort-based action. This is often a time duration, but also could be cycle counts or other measures of effort or usefulness.
pub fn note(&self) -> &Option<String>
[src]
pub fn resource_quantity(&self) -> &Option<Measure>
[src]
The amount and unit of the economic resource counted or inventoried.
pub fn satisfied_by(
&self
) -> &CommitmentEconomicEventUnion<COMMITMENT, ECONOMICEVENT>
[src]
&self
) -> &CommitmentEconomicEventUnion<COMMITMENT, ECONOMICEVENT>
A commitment or economic event fully or partially satisfying an intent
pub fn satisfies(&self) -> &INTENT
[src]
An intent satisfied fully or partially by an economic event or commitment.
impl<COMMITMENT, ECONOMICEVENT, INTENT> Satisfaction<COMMITMENT, ECONOMICEVENT, INTENT>
[src]
pub fn set_effort_quantity(&mut self, val: Option<Measure>) -> &mut Self
[src]
The amount and unit of the work or use or citation effort-based action. This is often a time duration, but also could be cycle counts or other measures of effort or usefulness.
pub fn set_note(&mut self, val: Option<String>) -> &mut Self
[src]
pub fn set_resource_quantity(&mut self, val: Option<Measure>) -> &mut Self
[src]
The amount and unit of the economic resource counted or inventoried.
pub fn set_satisfied_by(
&mut self,
val: CommitmentEconomicEventUnion<COMMITMENT, ECONOMICEVENT>
) -> &mut Self
[src]
&mut self,
val: CommitmentEconomicEventUnion<COMMITMENT, ECONOMICEVENT>
) -> &mut Self
A commitment or economic event fully or partially satisfying an intent
pub fn set_satisfies(&mut self, val: INTENT) -> &mut Self
[src]
An intent satisfied fully or partially by an economic event or commitment.
impl<COMMITMENT, ECONOMICEVENT, INTENT> Satisfaction<COMMITMENT, ECONOMICEVENT, INTENT>
[src]
pub fn effort_quantity_mut(&mut self) -> &mut Option<Measure>
[src]
The amount and unit of the work or use or citation effort-based action. This is often a time duration, but also could be cycle counts or other measures of effort or usefulness.
pub fn note_mut(&mut self) -> &mut Option<String>
[src]
pub fn resource_quantity_mut(&mut self) -> &mut Option<Measure>
[src]
The amount and unit of the economic resource counted or inventoried.
pub fn satisfied_by_mut(
&mut self
) -> &mut CommitmentEconomicEventUnion<COMMITMENT, ECONOMICEVENT>
[src]
&mut self
) -> &mut CommitmentEconomicEventUnion<COMMITMENT, ECONOMICEVENT>
A commitment or economic event fully or partially satisfying an intent
pub fn satisfies_mut(&mut self) -> &mut INTENT
[src]
An intent satisfied fully or partially by an economic event or commitment.
impl<COMMITMENT, ECONOMICEVENT, INTENT> Satisfaction<COMMITMENT, ECONOMICEVENT, INTENT>
[src]
pub fn builder() -> SatisfactionBuilder<COMMITMENT, ECONOMICEVENT, INTENT>
[src]
Create an empty builder object for Satisfaction
pub fn into_builder(
self
) -> SatisfactionBuilder<COMMITMENT, ECONOMICEVENT, INTENT>
[src]
self
) -> SatisfactionBuilder<COMMITMENT, ECONOMICEVENT, INTENT>
Turns Satisfaction into SatisfactionBuilder
Trait Implementations
impl<COMMITMENT: Clone, ECONOMICEVENT: Clone, INTENT: Clone> Clone for Satisfaction<COMMITMENT, ECONOMICEVENT, INTENT>
[src]
fn clone(&self) -> Satisfaction<COMMITMENT, ECONOMICEVENT, INTENT>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<COMMITMENT: Debug, ECONOMICEVENT: Debug, INTENT: Debug> Debug for Satisfaction<COMMITMENT, ECONOMICEVENT, INTENT>
[src]
impl<'de, COMMITMENT, ECONOMICEVENT, INTENT> Deserialize<'de> for Satisfaction<COMMITMENT, ECONOMICEVENT, INTENT> where
COMMITMENT: Deserialize<'de>,
ECONOMICEVENT: Deserialize<'de>,
INTENT: Deserialize<'de>,
[src]
COMMITMENT: Deserialize<'de>,
ECONOMICEVENT: Deserialize<'de>,
INTENT: Deserialize<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl<COMMITMENT: PartialEq, ECONOMICEVENT: PartialEq, INTENT: PartialEq> PartialEq<Satisfaction<COMMITMENT, ECONOMICEVENT, INTENT>> for Satisfaction<COMMITMENT, ECONOMICEVENT, INTENT>
[src]
fn eq(&self, other: &Satisfaction<COMMITMENT, ECONOMICEVENT, INTENT>) -> bool
[src]
fn ne(&self, other: &Satisfaction<COMMITMENT, ECONOMICEVENT, INTENT>) -> bool
[src]
impl<COMMITMENT, ECONOMICEVENT, INTENT> Serialize for Satisfaction<COMMITMENT, ECONOMICEVENT, INTENT> where
COMMITMENT: Serialize,
ECONOMICEVENT: Serialize,
INTENT: Serialize,
[src]
COMMITMENT: Serialize,
ECONOMICEVENT: Serialize,
INTENT: Serialize,
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<COMMITMENT, ECONOMICEVENT, INTENT> StructuralPartialEq for Satisfaction<COMMITMENT, ECONOMICEVENT, INTENT>
[src]
Auto Trait Implementations
impl<COMMITMENT, ECONOMICEVENT, INTENT> RefUnwindSafe for Satisfaction<COMMITMENT, ECONOMICEVENT, INTENT> where
COMMITMENT: RefUnwindSafe,
ECONOMICEVENT: RefUnwindSafe,
INTENT: RefUnwindSafe,
COMMITMENT: RefUnwindSafe,
ECONOMICEVENT: RefUnwindSafe,
INTENT: RefUnwindSafe,
impl<COMMITMENT, ECONOMICEVENT, INTENT> Send for Satisfaction<COMMITMENT, ECONOMICEVENT, INTENT> where
COMMITMENT: Send,
ECONOMICEVENT: Send,
INTENT: Send,
COMMITMENT: Send,
ECONOMICEVENT: Send,
INTENT: Send,
impl<COMMITMENT, ECONOMICEVENT, INTENT> Sync for Satisfaction<COMMITMENT, ECONOMICEVENT, INTENT> where
COMMITMENT: Sync,
ECONOMICEVENT: Sync,
INTENT: Sync,
COMMITMENT: Sync,
ECONOMICEVENT: Sync,
INTENT: Sync,
impl<COMMITMENT, ECONOMICEVENT, INTENT> Unpin for Satisfaction<COMMITMENT, ECONOMICEVENT, INTENT> where
COMMITMENT: Unpin,
ECONOMICEVENT: Unpin,
INTENT: Unpin,
COMMITMENT: Unpin,
ECONOMICEVENT: Unpin,
INTENT: Unpin,
impl<COMMITMENT, ECONOMICEVENT, INTENT> UnwindSafe for Satisfaction<COMMITMENT, ECONOMICEVENT, INTENT> where
COMMITMENT: UnwindSafe,
ECONOMICEVENT: UnwindSafe,
INTENT: UnwindSafe,
COMMITMENT: UnwindSafe,
ECONOMICEVENT: UnwindSafe,
INTENT: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,