[][src]Struct vf_rs::intent::Intent

pub struct Intent {
    pub action: String,
    pub agreed_in: Option<Url>,
    pub at_location: Option<Box<SpatialThing>>,
    pub available_quantity: Option<Box<Measure>>,
    pub due: Option<DateTime<Utc>>,
    pub effort_quantity: Option<Box<Measure>>,
    pub finished: Option<bool>,
    pub has_beginning: Option<DateTime<Utc>>,
    pub has_end: Option<DateTime<Utc>>,
    pub has_point_in_time: Option<DateTime<Utc>>,
    pub image: Option<Url>,
    pub in_scope_of: Option<Box<Agent>>,
    pub input_of: Option<Box<Process>>,
    pub name: Option<String>,
    pub note: Option<String>,
    pub output_of: Option<Box<Process>>,
    pub provider: Option<Box<Agent>>,
    pub receiver: Option<Box<Agent>>,
    pub resource_classified_as: Vec<Url>,
    pub resource_conforms_to: Option<Box<ResourceSpecification>>,
    pub resource_inventoried_as: Option<Box<EconomicResource>>,
    pub resource_quantity: Option<Box<Measure>>,
}

A planned economic flow, which can lead to economic events (sometimes through commitments).

ID: https://raw.githubusercontent.com/valueflows/valueflows/master/json-schemas/Intent.json

Fields

action: String

Relates an intent to a verb, such as consume, produce, work, improve, etc.

agreed_in: Option<Url>

Reference to an agreement between agents which specifies the rules or policies or calculations which govern this intent.

at_location: Option<Box<SpatialThing>>

The place where an intent occurs. Usually mappable.

available_quantity: Option<Box<Measure>>

The total quantity of the offered resource available.

due: Option<DateTime<Utc>>

The due date/time of the intent.

effort_quantity: Option<Box<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.

finished: Option<bool>

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

has_beginning: Option<DateTime<Utc>>

The planned beginning of the intent.

has_end: Option<DateTime<Utc>>

The planned end of the intent.

has_point_in_time: Option<DateTime<Utc>>

The planned date/time for the intent. Can be used instead of beginning and end.

image: Option<Url>

The uri to an image relevant to the item, such as a photo, diagram, etc.

in_scope_of: Option<Box<Agent>>

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

input_of: Option<Box<Process>>

Defines the process to which this intent is an input.

name: Option<String>

An informal or formal textual identifier for the intent. Does not imply uniqueness.

note: Option<String>

A textual comment or description.

output_of: Option<Box<Process>>

Defines the process for which this intent is an output.

provider: Option<Box<Agent>>

The economic agent from whom the intent is initiated. This implies that the intent is an offer.

receiver: Option<Box<Agent>>

The economic agent whom the intent is for. This implies that the intent is a request.

resource_classified_as: Vec<Url>

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

resource_conforms_to: Option<Box<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.

resource_inventoried_as: Option<Box<EconomicResource>>

Economic resource involved in the intent.

resource_quantity: Option<Box<Measure>>

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

Methods

impl Intent[src]

pub fn into_builder(self) -> IntentBuilder[src]

Turns Intent into IntentBuilder

Trait Implementations

impl Clone for Intent[src]

impl Debug for Intent[src]

impl<'de> Deserialize<'de> for Intent[src]

impl PartialEq<Intent> for Intent[src]

impl Serialize for Intent[src]

impl StructuralPartialEq for Intent[src]

Auto Trait Implementations

impl RefUnwindSafe for Intent

impl Send for Intent

impl Sync for Intent

impl Unpin for Intent

impl UnwindSafe for Intent

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: 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.