Struct vf_rs::vf::Intent

source ·
pub struct Intent<AGENT, PROCESS, PLAN, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE> { /* private fields */ }
Expand description

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/ont/vf#Intent

Implementations§

source§

impl<AGENT, PROCESS, PLAN, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE> Intent<AGENT, PROCESS, PLAN, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE>

source

pub fn action_mut(&mut self) -> &mut Action

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

source

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

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

source

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

The quantity of the offered resource currently available.

source

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

The time something is expected to be complete.

source

pub fn effort_quantity_mut(&mut self) -> &mut Option<Measure>

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.

source

pub fn finished_mut(&mut self) -> &mut Option<bool>

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.

source

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

The planned or actual beginning of a flow or process.

source

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

The planned or actual end of a flow or process.

source

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

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.

source

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

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

source

pub fn image_list_mut(&mut self) -> &mut Option<Url>

A comma separated list of uri addresses to images relevant to the resource.

source

pub fn in_scope_of_mut(&mut self) -> &mut Vec<AGENT>

In the context of an agent, a grouping generally used for accounting, reporting.

source

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

Relates an input flow to its process.

source

pub fn minimum_quantity_mut(&mut self) -> &mut Option<Measure>

The minimum required order quantity of the offered resource.

source

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

source

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

Relates an output flow to its process.

source

pub fn planned_within_mut(&mut self) -> &mut Option<PLAN>

The non-process commitment/intent or process with its inputs and outputs is part of the plan.

source

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

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

source

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

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

source

pub fn resource_classified_as_mut(&mut self) -> &mut Vec<RESOURCECLASSIFIEDAS>

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

source

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

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.

source

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

Economic resource involved in the flow.

source

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

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

source§

impl<AGENT, PROCESS, PLAN, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE> Intent<AGENT, PROCESS, PLAN, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE>

source

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

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

source

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

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

source

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

The quantity of the offered resource currently available.

source

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

The time something is expected to be complete.

source

pub fn set_effort_quantity(&mut self, val: Option<Measure>) -> &mut Self

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.

source

pub fn set_finished(&mut self, val: Option<bool>) -> &mut Self

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.

source

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

The planned or actual beginning of a flow or process.

source

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

The planned or actual end of a flow or process.

source

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

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.

source

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

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

source

pub fn set_image_list(&mut self, val: Option<Url>) -> &mut Self

A comma separated list of uri addresses to images relevant to the resource.

source

pub fn set_in_scope_of(&mut self, val: Vec<AGENT>) -> &mut Self

In the context of an agent, a grouping generally used for accounting, reporting.

source

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

Relates an input flow to its process.

source

pub fn set_minimum_quantity(&mut self, val: Option<Measure>) -> &mut Self

The minimum required order quantity of the offered resource.

source

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

source

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

Relates an output flow to its process.

source

pub fn set_planned_within(&mut self, val: Option<PLAN>) -> &mut Self

The non-process commitment/intent or process with its inputs and outputs is part of the plan.

source

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

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

source

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

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

source

pub fn set_resource_classified_as( &mut self, val: Vec<RESOURCECLASSIFIEDAS> ) -> &mut Self

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

source

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

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.

source

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

Economic resource involved in the flow.

source

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

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

source§

impl<AGENT, PROCESS, PLAN, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE> Intent<AGENT, PROCESS, PLAN, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE>

source

pub fn action(&self) -> &Action

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

source

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

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

source

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

The quantity of the offered resource currently available.

source

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

The time something is expected to be complete.

source

pub fn effort_quantity(&self) -> &Option<Measure>

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.

source

pub fn finished(&self) -> &Option<bool>

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.

source

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

The planned or actual beginning of a flow or process.

source

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

The planned or actual end of a flow or process.

source

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

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.

source

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

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

source

pub fn image_list(&self) -> &Option<Url>

A comma separated list of uri addresses to images relevant to the resource.

source

pub fn in_scope_of(&self) -> &Vec<AGENT>

In the context of an agent, a grouping generally used for accounting, reporting.

source

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

Relates an input flow to its process.

source

pub fn minimum_quantity(&self) -> &Option<Measure>

The minimum required order quantity of the offered resource.

source

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

source

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

Relates an output flow to its process.

source

pub fn planned_within(&self) -> &Option<PLAN>

The non-process commitment/intent or process with its inputs and outputs is part of the plan.

source

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

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

source

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

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

source

pub fn resource_classified_as(&self) -> &Vec<RESOURCECLASSIFIEDAS>

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

source

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

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.

source

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

Economic resource involved in the flow.

source

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

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

source§

impl<AGENT, PROCESS, PLAN, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE> Intent<AGENT, PROCESS, PLAN, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE>

source

pub fn builder( ) -> IntentBuilder<AGENT, PROCESS, PLAN, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE>

Create an empty builder object for Intent

source

pub fn into_builder( self ) -> IntentBuilder<AGENT, PROCESS, PLAN, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE>

Turns Intent into IntentBuilder

Trait Implementations§

source§

impl<AGENT: Clone, PROCESS: Clone, PLAN: Clone, RESOURCECLASSIFIEDAS: Clone, RESOURCESPECIFICATION: Clone, ECONOMICRESOURCE: Clone> Clone for Intent<AGENT, PROCESS, PLAN, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE>

source§

fn clone( &self ) -> Intent<AGENT, PROCESS, PLAN, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE>

Returns a copy of the value. Read more
1.0.0 · source§

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

Performs copy-assignment from source. Read more
source§

impl<AGENT: Debug, PROCESS: Debug, PLAN: Debug, RESOURCECLASSIFIEDAS: Debug, RESOURCESPECIFICATION: Debug, ECONOMICRESOURCE: Debug> Debug for Intent<AGENT, PROCESS, PLAN, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de, AGENT, PROCESS, PLAN, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE> Deserialize<'de> for Intent<AGENT, PROCESS, PLAN, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE>
where AGENT: Deserialize<'de>, PROCESS: Deserialize<'de>, PLAN: Deserialize<'de>, RESOURCECLASSIFIEDAS: Deserialize<'de>, RESOURCESPECIFICATION: Deserialize<'de>, ECONOMICRESOURCE: Deserialize<'de>,

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<AGENT: PartialEq, PROCESS: PartialEq, PLAN: PartialEq, RESOURCECLASSIFIEDAS: PartialEq, RESOURCESPECIFICATION: PartialEq, ECONOMICRESOURCE: PartialEq> PartialEq for Intent<AGENT, PROCESS, PLAN, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE>

source§

fn eq( &self, other: &Intent<AGENT, PROCESS, PLAN, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE> ) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<AGENT, PROCESS, PLAN, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE> Serialize for Intent<AGENT, PROCESS, PLAN, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE>
where AGENT: Serialize, PROCESS: Serialize, PLAN: Serialize, RESOURCECLASSIFIEDAS: Serialize, RESOURCESPECIFICATION: Serialize, ECONOMICRESOURCE: Serialize,

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
source§

impl<AGENT, PROCESS, PLAN, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE> StructuralPartialEq for Intent<AGENT, PROCESS, PLAN, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE>

Auto Trait Implementations§

§

impl<AGENT, PROCESS, PLAN, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE> Freeze for Intent<AGENT, PROCESS, PLAN, RESOURCECLASSIFIEDAS, RESOURCESPECIFICATION, ECONOMICRESOURCE>
where AGENT: Freeze, ECONOMICRESOURCE: Freeze, PLAN: Freeze, PROCESS: Freeze, RESOURCESPECIFICATION: Freeze,

§

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

§

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

§

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

§

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

§

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

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> 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,

§

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>,

§

type Error = Infallible

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>,

§

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.
source§

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