[][src]Struct vf_rs::vf::Intent

pub struct Intent<PROCESS, AGENT, RESOURCESPECIFICATION, ECONOMICRESOURCE> { /* fields omitted */ }

A proposed or planned or estimated economic flow, prior to a commitment or agreement, which can lead to commitments and/or economic events.

ID: https://w3id.org/valueflows#Intent

Implementations

impl<PROCESS, AGENT, RESOURCESPECIFICATION, ECONOMICRESOURCE> Intent<PROCESS, AGENT, RESOURCESPECIFICATION, ECONOMICRESOURCE>[src]

pub fn action(&self) -> &Action[src]

Defines the kind of flow, such as consume, produce, work, transfer, etc.

pub fn agreed_in(&self) -> &Option<Url>[src]

Reference to an agreement between agents which specifies the rules, terms, policies, calculations, etc. which govern this flow.

pub fn at_location(&self) -> &Option<SpatialThing>[src]

The place where an intent, commitment, or economic event occurs. Usually mappable.

pub fn available_quantity(&self) -> &Option<Measure>[src]

The quantity of the offered resource currently available.

pub fn due(&self) -> &Option<DateTime<Utc>>[src]

The time something is expected to be complete.

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 finished(&self) -> &Option<bool>[src]

The commitment or intent or process is complete or not. This is irrespective of if the original goal has been met, and indicates that no more will be done.

pub fn has_beginning(&self) -> &Option<DateTime<Utc>>[src]

The planned or actual beginning of a flow or process.

pub fn has_end(&self) -> &Option<DateTime<Utc>>[src]

The planned or actual end of a flow or process.

pub fn has_point_in_time(&self) -> &Option<DateTime<Utc>>[src]

The planned or actual time of a flow; can be used instead of hasBeginning and hasEnd, if so, hasBeginning and hasEnd should be able to be returned with this value.

pub fn image(&self) -> &Option<Url>[src]

The uri to an image relevant to the entity, such as a logo, avatar, photo, diagram, etc.

pub fn in_scope_of(&self) -> &Vec<Url>[src]

Grouping around something to create a boundary or context, used for documenting, accounting, planning.

pub fn input_of(&self) -> &Option<PROCESS>[src]

Relates an input flow to it's process.

pub fn name(&self) -> &Option<String>[src]

An informal or formal textual identifier for an object. Does not imply uniqueness.

pub fn note(&self) -> &Option<String>[src]

pub fn output_of(&self) -> &Option<PROCESS>[src]

Relates an output flow to it's process.

pub fn provider(&self) -> &Option<AGENT>[src]

The economic agent from whom the intended, committed, or actual economic event is initiated.

pub fn receiver(&self) -> &Option<AGENT>[src]

The economic agent whom the intended, committed, or actual economic event is for.

pub fn resource_classified_as(&self) -> &Vec<Url>[src]

References a concept in a common taxonomy or other classification scheme for purposes of categorization or grouping.

pub fn resource_conforms_to(&self) -> &Option<RESOURCESPECIFICATION>[src]

The primary resource specification or definition of an existing or potential economic resource. A resource will have only one, as this specifies exactly what the resource is.

pub fn resource_inventoried_as(&self) -> &Option<ECONOMICRESOURCE>[src]

Economic resource involved in the flow.

pub fn resource_quantity(&self) -> &Option<Measure>[src]

The amount and unit of the economic resource counted or inventoried.

impl<PROCESS, AGENT, RESOURCESPECIFICATION, ECONOMICRESOURCE> Intent<PROCESS, AGENT, RESOURCESPECIFICATION, ECONOMICRESOURCE>[src]

pub fn set_action(&mut self, val: Action) -> &mut Self[src]

Defines the kind of flow, such as consume, produce, work, transfer, etc.

pub fn set_agreed_in(&mut self, val: Option<Url>) -> &mut Self[src]

Reference to an agreement between agents which specifies the rules, terms, policies, calculations, etc. which govern this flow.

pub fn set_at_location(&mut self, val: Option<SpatialThing>) -> &mut Self[src]

The place where an intent, commitment, or economic event occurs. Usually mappable.

pub fn set_available_quantity(&mut self, val: Option<Measure>) -> &mut Self[src]

The quantity of the offered resource currently available.

pub fn set_due(&mut self, val: Option<DateTime<Utc>>) -> &mut Self[src]

The time something is expected to be complete.

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_finished(&mut self, val: Option<bool>) -> &mut Self[src]

The commitment or intent or process is complete or not. This is irrespective of if the original goal has been met, and indicates that no more will be done.

pub fn set_has_beginning(&mut self, val: Option<DateTime<Utc>>) -> &mut Self[src]

The planned or actual beginning of a flow or process.

pub fn set_has_end(&mut self, val: Option<DateTime<Utc>>) -> &mut Self[src]

The planned or actual end of a flow or process.

pub fn set_has_point_in_time(&mut self, val: Option<DateTime<Utc>>) -> &mut Self[src]

The planned or actual time of a flow; can be used instead of hasBeginning and hasEnd, if so, hasBeginning and hasEnd should be able to be returned with this value.

pub fn set_image(&mut self, val: Option<Url>) -> &mut Self[src]

The uri to an image relevant to the entity, such as a logo, avatar, photo, diagram, etc.

pub fn set_in_scope_of(&mut self, val: Vec<Url>) -> &mut Self[src]

Grouping around something to create a boundary or context, used for documenting, accounting, planning.

pub fn set_input_of(&mut self, val: Option<PROCESS>) -> &mut Self[src]

Relates an input flow to it's process.

pub fn set_name(&mut self, val: Option<String>) -> &mut Self[src]

An informal or formal textual identifier for an object. Does not imply uniqueness.

pub fn set_note(&mut self, val: Option<String>) -> &mut Self[src]

pub fn set_output_of(&mut self, val: Option<PROCESS>) -> &mut Self[src]

Relates an output flow to it's process.

pub fn set_provider(&mut self, val: Option<AGENT>) -> &mut Self[src]

The economic agent from whom the intended, committed, or actual economic event is initiated.

pub fn set_receiver(&mut self, val: Option<AGENT>) -> &mut Self[src]

The economic agent whom the intended, committed, or actual economic event is for.

pub fn set_resource_classified_as(&mut self, val: Vec<Url>) -> &mut Self[src]

References a concept in a common taxonomy or other classification scheme for purposes of categorization or grouping.

pub fn set_resource_conforms_to(
    &mut self,
    val: Option<RESOURCESPECIFICATION>
) -> &mut Self
[src]

The primary resource specification or definition of an existing or potential economic resource. A resource will have only one, as this specifies exactly what the resource is.

pub fn set_resource_inventoried_as(
    &mut self,
    val: Option<ECONOMICRESOURCE>
) -> &mut Self
[src]

Economic resource involved in the flow.

pub fn set_resource_quantity(&mut self, val: Option<Measure>) -> &mut Self[src]

The amount and unit of the economic resource counted or inventoried.

impl<PROCESS, AGENT, RESOURCESPECIFICATION, ECONOMICRESOURCE> Intent<PROCESS, AGENT, RESOURCESPECIFICATION, ECONOMICRESOURCE>[src]

pub fn action_mut(&mut self) -> &mut Action[src]

Defines the kind of flow, such as consume, produce, work, transfer, etc.

pub fn agreed_in_mut(&mut self) -> &mut Option<Url>[src]

Reference to an agreement between agents which specifies the rules, terms, policies, calculations, etc. which govern this flow.

pub fn at_location_mut(&mut self) -> &mut Option<SpatialThing>[src]

The place where an intent, commitment, or economic event occurs. Usually mappable.

pub fn available_quantity_mut(&mut self) -> &mut Option<Measure>[src]

The quantity of the offered resource currently available.

pub fn due_mut(&mut self) -> &mut Option<DateTime<Utc>>[src]

The time something is expected to be complete.

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 finished_mut(&mut self) -> &mut Option<bool>[src]

The commitment or intent or process is complete or not. This is irrespective of if the original goal has been met, and indicates that no more will be done.

pub fn has_beginning_mut(&mut self) -> &mut Option<DateTime<Utc>>[src]

The planned or actual beginning of a flow or process.

pub fn has_end_mut(&mut self) -> &mut Option<DateTime<Utc>>[src]

The planned or actual end of a flow or process.

pub fn has_point_in_time_mut(&mut self) -> &mut Option<DateTime<Utc>>[src]

The planned or actual time of a flow; can be used instead of hasBeginning and hasEnd, if so, hasBeginning and hasEnd should be able to be returned with this value.

pub fn image_mut(&mut self) -> &mut Option<Url>[src]

The uri to an image relevant to the entity, such as a logo, avatar, photo, diagram, etc.

pub fn in_scope_of_mut(&mut self) -> &mut Vec<Url>[src]

Grouping around something to create a boundary or context, used for documenting, accounting, planning.

pub fn input_of_mut(&mut self) -> &mut Option<PROCESS>[src]

Relates an input flow to it's process.

pub fn name_mut(&mut self) -> &mut Option<String>[src]

An informal or formal textual identifier for an object. Does not imply uniqueness.

pub fn note_mut(&mut self) -> &mut Option<String>[src]

pub fn output_of_mut(&mut self) -> &mut Option<PROCESS>[src]

Relates an output flow to it's process.

pub fn provider_mut(&mut self) -> &mut Option<AGENT>[src]

The economic agent from whom the intended, committed, or actual economic event is initiated.

pub fn receiver_mut(&mut self) -> &mut Option<AGENT>[src]

The economic agent whom the intended, committed, or actual economic event is for.

pub fn resource_classified_as_mut(&mut self) -> &mut Vec<Url>[src]

References a concept in a common taxonomy or other classification scheme for purposes of categorization or grouping.

pub fn resource_conforms_to_mut(&mut self) -> &mut Option<RESOURCESPECIFICATION>[src]

The primary resource specification or definition of an existing or potential economic resource. A resource will have only one, as this specifies exactly what the resource is.

pub fn resource_inventoried_as_mut(&mut self) -> &mut Option<ECONOMICRESOURCE>[src]

Economic resource involved in the flow.

pub fn resource_quantity_mut(&mut self) -> &mut Option<Measure>[src]

The amount and unit of the economic resource counted or inventoried.

impl<PROCESS, AGENT, RESOURCESPECIFICATION, ECONOMICRESOURCE> Intent<PROCESS, AGENT, RESOURCESPECIFICATION, ECONOMICRESOURCE>[src]

pub fn builder(
) -> IntentBuilder<PROCESS, AGENT, RESOURCESPECIFICATION, ECONOMICRESOURCE>
[src]

Create an empty builder object for Intent

pub fn into_builder(
    self
) -> IntentBuilder<PROCESS, AGENT, RESOURCESPECIFICATION, ECONOMICRESOURCE>
[src]

Turns Intent into IntentBuilder

Trait Implementations

impl<PROCESS: Clone, AGENT: Clone, RESOURCESPECIFICATION: Clone, ECONOMICRESOURCE: Clone> Clone for Intent<PROCESS, AGENT, RESOURCESPECIFICATION, ECONOMICRESOURCE>[src]

impl<PROCESS: Debug, AGENT: Debug, RESOURCESPECIFICATION: Debug, ECONOMICRESOURCE: Debug> Debug for Intent<PROCESS, AGENT, RESOURCESPECIFICATION, ECONOMICRESOURCE>[src]

impl<'de, PROCESS, AGENT, RESOURCESPECIFICATION, ECONOMICRESOURCE> Deserialize<'de> for Intent<PROCESS, AGENT, RESOURCESPECIFICATION, ECONOMICRESOURCE> where
    PROCESS: Deserialize<'de>,
    AGENT: Deserialize<'de>,
    RESOURCESPECIFICATION: Deserialize<'de>,
    ECONOMICRESOURCE: Deserialize<'de>, 
[src]

impl<PROCESS: PartialEq, AGENT: PartialEq, RESOURCESPECIFICATION: PartialEq, ECONOMICRESOURCE: PartialEq> PartialEq<Intent<PROCESS, AGENT, RESOURCESPECIFICATION, ECONOMICRESOURCE>> for Intent<PROCESS, AGENT, RESOURCESPECIFICATION, ECONOMICRESOURCE>[src]

impl<PROCESS, AGENT, RESOURCESPECIFICATION, ECONOMICRESOURCE> Serialize for Intent<PROCESS, AGENT, RESOURCESPECIFICATION, ECONOMICRESOURCE> where
    PROCESS: Serialize,
    AGENT: Serialize,
    RESOURCESPECIFICATION: Serialize,
    ECONOMICRESOURCE: Serialize
[src]

impl<PROCESS, AGENT, RESOURCESPECIFICATION, ECONOMICRESOURCE> StructuralPartialEq for Intent<PROCESS, AGENT, RESOURCESPECIFICATION, ECONOMICRESOURCE>[src]

Auto Trait Implementations

impl<PROCESS, AGENT, RESOURCESPECIFICATION, ECONOMICRESOURCE> RefUnwindSafe for Intent<PROCESS, AGENT, RESOURCESPECIFICATION, ECONOMICRESOURCE> where
    AGENT: RefUnwindSafe,
    ECONOMICRESOURCE: RefUnwindSafe,
    PROCESS: RefUnwindSafe,
    RESOURCESPECIFICATION: RefUnwindSafe

impl<PROCESS, AGENT, RESOURCESPECIFICATION, ECONOMICRESOURCE> Send for Intent<PROCESS, AGENT, RESOURCESPECIFICATION, ECONOMICRESOURCE> where
    AGENT: Send,
    ECONOMICRESOURCE: Send,
    PROCESS: Send,
    RESOURCESPECIFICATION: Send

impl<PROCESS, AGENT, RESOURCESPECIFICATION, ECONOMICRESOURCE> Sync for Intent<PROCESS, AGENT, RESOURCESPECIFICATION, ECONOMICRESOURCE> where
    AGENT: Sync,
    ECONOMICRESOURCE: Sync,
    PROCESS: Sync,
    RESOURCESPECIFICATION: Sync

impl<PROCESS, AGENT, RESOURCESPECIFICATION, ECONOMICRESOURCE> Unpin for Intent<PROCESS, AGENT, RESOURCESPECIFICATION, ECONOMICRESOURCE> where
    AGENT: Unpin,
    ECONOMICRESOURCE: Unpin,
    PROCESS: Unpin,
    RESOURCESPECIFICATION: Unpin

impl<PROCESS, AGENT, RESOURCESPECIFICATION, ECONOMICRESOURCE> UnwindSafe for Intent<PROCESS, AGENT, RESOURCESPECIFICATION, ECONOMICRESOURCE> where
    AGENT: UnwindSafe,
    ECONOMICRESOURCE: UnwindSafe,
    PROCESS: UnwindSafe,
    RESOURCESPECIFICATION: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.