Struct vf_rs::vf::Proposal

source ·
pub struct Proposal<AGENT, PROPOSALLIST, INTENT> { /* private fields */ }
Expand description

Published requests or offers, sometimes with what is expected in return.

ID: https://w3id.org/valueflows/ont/vf#Proposal

Implementations§

source§

impl<AGENT, PROPOSALLIST, INTENT> Proposal<AGENT, PROPOSALLIST, INTENT>

source

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

source

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

Location or area where the proposal is valid.

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 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 listed_in_mut(&mut self) -> &mut Option<PROPOSALLIST>

This proposal is part of a list of proposals.

source

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

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

source

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

source

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

The agent(s) to which the proposal is published.

source

pub fn publishes_mut(&mut self) -> &mut Option<INTENT>

The primary intent(s) of this published proposal. Would be used in intent matching.

source

pub fn purpose_mut(&mut self) -> &mut Option<ProposalPurpose>

The type of proposal, offer or request.

source

pub fn reciprocal_mut(&mut self) -> &mut Option<INTENT>

The reciprocal intent(s) of this published proposal. Not meant to be used for intent matching.

source

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

This proposal contains unit based quantities, which can be multipied to create commitments; commonly seen in a price list or e-commerce.

source§

impl<AGENT, PROPOSALLIST, INTENT> Proposal<AGENT, PROPOSALLIST, INTENT>

source

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

source

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

Location or area where the proposal is valid.

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_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_listed_in(&mut self, val: Option<PROPOSALLIST>) -> &mut Self

This proposal is part of a list of proposals.

source

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

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

source

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

source

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

The agent(s) to which the proposal is published.

source

pub fn set_publishes(&mut self, val: Option<INTENT>) -> &mut Self

The primary intent(s) of this published proposal. Would be used in intent matching.

source

pub fn set_purpose(&mut self, val: Option<ProposalPurpose>) -> &mut Self

The type of proposal, offer or request.

source

pub fn set_reciprocal(&mut self, val: Option<INTENT>) -> &mut Self

The reciprocal intent(s) of this published proposal. Not meant to be used for intent matching.

source

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

This proposal contains unit based quantities, which can be multipied to create commitments; commonly seen in a price list or e-commerce.

source§

impl<AGENT, PROPOSALLIST, INTENT> Proposal<AGENT, PROPOSALLIST, INTENT>

source

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

source

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

Location or area where the proposal is valid.

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 in_scope_of(&self) -> &Vec<AGENT>

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

source

pub fn listed_in(&self) -> &Option<PROPOSALLIST>

This proposal is part of a list of proposals.

source

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

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

source

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

source

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

The agent(s) to which the proposal is published.

source

pub fn publishes(&self) -> &Option<INTENT>

The primary intent(s) of this published proposal. Would be used in intent matching.

source

pub fn purpose(&self) -> &Option<ProposalPurpose>

The type of proposal, offer or request.

source

pub fn reciprocal(&self) -> &Option<INTENT>

The reciprocal intent(s) of this published proposal. Not meant to be used for intent matching.

source

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

This proposal contains unit based quantities, which can be multipied to create commitments; commonly seen in a price list or e-commerce.

source§

impl<AGENT, PROPOSALLIST, INTENT> Proposal<AGENT, PROPOSALLIST, INTENT>

source

pub fn builder() -> ProposalBuilder<AGENT, PROPOSALLIST, INTENT>

Create an empty builder object for Proposal

source

pub fn into_builder(self) -> ProposalBuilder<AGENT, PROPOSALLIST, INTENT>

Turns Proposal into ProposalBuilder

Trait Implementations§

source§

impl<AGENT: Clone, PROPOSALLIST: Clone, INTENT: Clone> Clone for Proposal<AGENT, PROPOSALLIST, INTENT>

source§

fn clone(&self) -> Proposal<AGENT, PROPOSALLIST, INTENT>

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, PROPOSALLIST: Debug, INTENT: Debug> Debug for Proposal<AGENT, PROPOSALLIST, INTENT>

source§

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

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

impl<'de, AGENT, PROPOSALLIST, INTENT> Deserialize<'de> for Proposal<AGENT, PROPOSALLIST, INTENT>
where AGENT: Deserialize<'de>, PROPOSALLIST: Deserialize<'de>, INTENT: 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, PROPOSALLIST: PartialEq, INTENT: PartialEq> PartialEq for Proposal<AGENT, PROPOSALLIST, INTENT>

source§

fn eq(&self, other: &Proposal<AGENT, PROPOSALLIST, INTENT>) -> 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, PROPOSALLIST, INTENT> Serialize for Proposal<AGENT, PROPOSALLIST, INTENT>
where AGENT: Serialize, PROPOSALLIST: Serialize, INTENT: 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, PROPOSALLIST, INTENT> StructuralPartialEq for Proposal<AGENT, PROPOSALLIST, INTENT>

Auto Trait Implementations§

§

impl<AGENT, PROPOSALLIST, INTENT> Freeze for Proposal<AGENT, PROPOSALLIST, INTENT>
where AGENT: Freeze, INTENT: Freeze, PROPOSALLIST: Freeze,

§

impl<AGENT, PROPOSALLIST, INTENT> RefUnwindSafe for Proposal<AGENT, PROPOSALLIST, INTENT>
where AGENT: RefUnwindSafe, INTENT: RefUnwindSafe, PROPOSALLIST: RefUnwindSafe,

§

impl<AGENT, PROPOSALLIST, INTENT> Send for Proposal<AGENT, PROPOSALLIST, INTENT>
where AGENT: Send, INTENT: Send, PROPOSALLIST: Send,

§

impl<AGENT, PROPOSALLIST, INTENT> Sync for Proposal<AGENT, PROPOSALLIST, INTENT>
where AGENT: Sync, INTENT: Sync, PROPOSALLIST: Sync,

§

impl<AGENT, PROPOSALLIST, INTENT> Unpin for Proposal<AGENT, PROPOSALLIST, INTENT>
where AGENT: Unpin, INTENT: Unpin, PROPOSALLIST: Unpin,

§

impl<AGENT, PROPOSALLIST, INTENT> UnwindSafe for Proposal<AGENT, PROPOSALLIST, INTENT>
where AGENT: UnwindSafe, INTENT: UnwindSafe, PROPOSALLIST: 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>,