[][src]Struct vf_rs::vf::builders::EconomicResourceBuilder

pub struct EconomicResourceBuilder<RESOURCESPECIFICATION, ECONOMICRESOURCE, AGENT, PROCESSSPECIFICATION> { /* fields omitted */ }

Builder for EconomicResource.

Implementations

impl<RESOURCESPECIFICATION, ECONOMICRESOURCE, AGENT, PROCESSSPECIFICATION> EconomicResourceBuilder<RESOURCESPECIFICATION, ECONOMICRESOURCE, AGENT, PROCESSSPECIFICATION>[src]

pub fn accounting_quantity<VALUE: Into<Measure>>(self, value: VALUE) -> Self[src]

The current amount and unit of the economic resource for which the agent has primary rights and responsibilities, sometimes thought of as ownership. This can be either stored or derived from economic events affecting the resource.

pub fn classified_as<VALUE: Into<Vec<Url>>>(self, value: VALUE) -> Self[src]

References one or more concepts in a common taxonomy or other classification scheme for purposes of categorization or grouping.

pub fn conforms_to<VALUE: Into<RESOURCESPECIFICATION>>(
    self,
    value: VALUE
) -> Self
[src]

The primary resource knowledge specification or definition of an existing or potential resource.

pub fn contained_in<VALUE: Into<ECONOMICRESOURCE>>(self, value: VALUE) -> Self[src]

Used when a stock economic resource contains units also defined as economic resources.

pub fn current_location<VALUE: Into<SpatialThing>>(self, value: VALUE) -> Self[src]

The current place an economic resource is located. Could be at any level of granularity, from a town to an address to a warehouse location. Usually mappable.

pub fn image<VALUE: Into<Url>>(self, value: VALUE) -> Self[src]

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

pub fn lot<VALUE: Into<ProductBatch>>(self, value: VALUE) -> Self[src]

Lot or batch of an economic resource, used to track forward or backwards to all occurrences of resources of that lot.

pub fn name<VALUE: Into<String>>(self, value: VALUE) -> Self[src]

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

pub fn note<VALUE: Into<String>>(self, value: VALUE) -> Self[src]

pub fn onhand_quantity<VALUE: Into<Measure>>(self, value: VALUE) -> Self[src]

The current amount and unit of the economic resource which is under direct control of the agent. It may be more or less than the accounting quantity. This can be either stored or derived from economic events affecting the resource.

pub fn primary_accountable<VALUE: Into<AGENT>>(self, value: VALUE) -> Self[src]

The agent currently with primary rights and responsibilites for the economic resource. It is the agent that is associated with the accountingQuantity of the economic resource.

pub fn stage<VALUE: Into<PROCESSSPECIFICATION>>(self, value: VALUE) -> Self[src]

References the ProcessSpecification of the last process the economic resource went through. Stage is used when the last process is important for finding proper resources, such as where the publishing process wants only documents that have gone through the editing process.

pub fn state<VALUE: Into<String>>(self, value: VALUE) -> Self[src]

The state of the desired economic resource, after coming out of a test or review process.

pub fn tracking_identifier<VALUE: Into<String>>(self, value: VALUE) -> Self[src]

Sometimes called serial number, used when each item must have a trackable identifier (like a computer). Could also be used for other unique tracking identifiers needed for resources.

pub fn unit_of_effort<VALUE: Into<Unit>>(self, value: VALUE) -> Self[src]

The unit used for use or work or sometimes cite actions.

pub fn build(
    self
) -> Result<EconomicResource<RESOURCESPECIFICATION, ECONOMICRESOURCE, AGENT, PROCESSSPECIFICATION>, String>
[src]

Builds a new EconomicResource.

Errors

If a required field has not been initialized.

Trait Implementations

impl<RESOURCESPECIFICATION: Default, ECONOMICRESOURCE: Default, AGENT: Default, PROCESSSPECIFICATION: Default> Default for EconomicResourceBuilder<RESOURCESPECIFICATION, ECONOMICRESOURCE, AGENT, PROCESSSPECIFICATION>[src]

Auto Trait Implementations

impl<RESOURCESPECIFICATION, ECONOMICRESOURCE, AGENT, PROCESSSPECIFICATION> RefUnwindSafe for EconomicResourceBuilder<RESOURCESPECIFICATION, ECONOMICRESOURCE, AGENT, PROCESSSPECIFICATION> where
    AGENT: RefUnwindSafe,
    ECONOMICRESOURCE: RefUnwindSafe,
    PROCESSSPECIFICATION: RefUnwindSafe,
    RESOURCESPECIFICATION: RefUnwindSafe

impl<RESOURCESPECIFICATION, ECONOMICRESOURCE, AGENT, PROCESSSPECIFICATION> Send for EconomicResourceBuilder<RESOURCESPECIFICATION, ECONOMICRESOURCE, AGENT, PROCESSSPECIFICATION> where
    AGENT: Send,
    ECONOMICRESOURCE: Send,
    PROCESSSPECIFICATION: Send,
    RESOURCESPECIFICATION: Send

impl<RESOURCESPECIFICATION, ECONOMICRESOURCE, AGENT, PROCESSSPECIFICATION> Sync for EconomicResourceBuilder<RESOURCESPECIFICATION, ECONOMICRESOURCE, AGENT, PROCESSSPECIFICATION> where
    AGENT: Sync,
    ECONOMICRESOURCE: Sync,
    PROCESSSPECIFICATION: Sync,
    RESOURCESPECIFICATION: Sync

impl<RESOURCESPECIFICATION, ECONOMICRESOURCE, AGENT, PROCESSSPECIFICATION> Unpin for EconomicResourceBuilder<RESOURCESPECIFICATION, ECONOMICRESOURCE, AGENT, PROCESSSPECIFICATION> where
    AGENT: Unpin,
    ECONOMICRESOURCE: Unpin,
    PROCESSSPECIFICATION: Unpin,
    RESOURCESPECIFICATION: Unpin

impl<RESOURCESPECIFICATION, ECONOMICRESOURCE, AGENT, PROCESSSPECIFICATION> UnwindSafe for EconomicResourceBuilder<RESOURCESPECIFICATION, ECONOMICRESOURCE, AGENT, PROCESSSPECIFICATION> where
    AGENT: UnwindSafe,
    ECONOMICRESOURCE: UnwindSafe,
    PROCESSSPECIFICATION: 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> From<T> for T[src]

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

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.