pub struct Proposal<AGENT, PROPOSALLIST, INTENT> { /* private fields */ }
Expand description
Published requests or offers, sometimes with what is expected in return.
Implementations§
source§impl<AGENT, PROPOSALLIST, INTENT> Proposal<AGENT, PROPOSALLIST, INTENT>
impl<AGENT, PROPOSALLIST, INTENT> Proposal<AGENT, PROPOSALLIST, INTENT>
pub fn created_mut(&mut self) -> &mut Option<DateTime<Utc>>
sourcepub fn eligible_location_mut(&mut self) -> &mut Option<SpatialThing>
pub fn eligible_location_mut(&mut self) -> &mut Option<SpatialThing>
Location or area where the proposal is valid.
sourcepub fn has_beginning_mut(&mut self) -> &mut Option<DateTime<Utc>>
pub fn has_beginning_mut(&mut self) -> &mut Option<DateTime<Utc>>
The planned or actual beginning of a flow or process.
sourcepub fn has_end_mut(&mut self) -> &mut Option<DateTime<Utc>>
pub fn has_end_mut(&mut self) -> &mut Option<DateTime<Utc>>
The planned or actual end of a flow or process.
sourcepub fn in_scope_of_mut(&mut self) -> &mut Vec<AGENT>
pub fn in_scope_of_mut(&mut self) -> &mut Vec<AGENT>
In the context of an agent, a grouping generally used for accounting, reporting.
sourcepub fn listed_in_mut(&mut self) -> &mut Option<PROPOSALLIST>
pub fn listed_in_mut(&mut self) -> &mut Option<PROPOSALLIST>
This proposal is part of a list of proposals.
sourcepub fn name_mut(&mut self) -> &mut Option<String>
pub fn name_mut(&mut self) -> &mut Option<String>
An informal or formal textual identifier for an object. Does not imply uniqueness.
pub fn note_mut(&mut self) -> &mut Option<String>
sourcepub fn proposed_to_mut(&mut self) -> &mut Option<AGENT>
pub fn proposed_to_mut(&mut self) -> &mut Option<AGENT>
The agent(s) to which the proposal is published.
sourcepub fn publishes_mut(&mut self) -> &mut Option<INTENT>
pub fn publishes_mut(&mut self) -> &mut Option<INTENT>
The primary intent(s) of this published proposal. Would be used in intent matching.
sourcepub fn purpose_mut(&mut self) -> &mut Option<ProposalPurpose>
pub fn purpose_mut(&mut self) -> &mut Option<ProposalPurpose>
The type of proposal, offer or request.
sourcepub fn reciprocal_mut(&mut self) -> &mut Option<INTENT>
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.
sourcepub fn unit_based_mut(&mut self) -> &mut Option<bool>
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>
impl<AGENT, PROPOSALLIST, INTENT> Proposal<AGENT, PROPOSALLIST, INTENT>
pub fn set_created(&mut self, val: Option<DateTime<Utc>>) -> &mut Self
sourcepub fn set_eligible_location(&mut self, val: Option<SpatialThing>) -> &mut Self
pub fn set_eligible_location(&mut self, val: Option<SpatialThing>) -> &mut Self
Location or area where the proposal is valid.
sourcepub fn set_has_beginning(&mut self, val: Option<DateTime<Utc>>) -> &mut Self
pub fn set_has_beginning(&mut self, val: Option<DateTime<Utc>>) -> &mut Self
The planned or actual beginning of a flow or process.
sourcepub fn set_has_end(&mut self, val: Option<DateTime<Utc>>) -> &mut Self
pub fn set_has_end(&mut self, val: Option<DateTime<Utc>>) -> &mut Self
The planned or actual end of a flow or process.
sourcepub fn set_in_scope_of(&mut self, val: Vec<AGENT>) -> &mut Self
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.
sourcepub fn set_listed_in(&mut self, val: Option<PROPOSALLIST>) -> &mut Self
pub fn set_listed_in(&mut self, val: Option<PROPOSALLIST>) -> &mut Self
This proposal is part of a list of proposals.
sourcepub fn set_name(&mut self, val: Option<String>) -> &mut Self
pub fn set_name(&mut self, val: Option<String>) -> &mut Self
An informal or formal textual identifier for an object. Does not imply uniqueness.
pub fn set_note(&mut self, val: Option<String>) -> &mut Self
sourcepub fn set_proposed_to(&mut self, val: Option<AGENT>) -> &mut Self
pub fn set_proposed_to(&mut self, val: Option<AGENT>) -> &mut Self
The agent(s) to which the proposal is published.
sourcepub fn set_publishes(&mut self, val: Option<INTENT>) -> &mut Self
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.
sourcepub fn set_purpose(&mut self, val: Option<ProposalPurpose>) -> &mut Self
pub fn set_purpose(&mut self, val: Option<ProposalPurpose>) -> &mut Self
The type of proposal, offer or request.
sourcepub fn set_reciprocal(&mut self, val: Option<INTENT>) -> &mut Self
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.
sourcepub fn set_unit_based(&mut self, val: Option<bool>) -> &mut Self
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>
impl<AGENT, PROPOSALLIST, INTENT> Proposal<AGENT, PROPOSALLIST, INTENT>
pub fn created(&self) -> &Option<DateTime<Utc>>
sourcepub fn eligible_location(&self) -> &Option<SpatialThing>
pub fn eligible_location(&self) -> &Option<SpatialThing>
Location or area where the proposal is valid.
sourcepub fn has_beginning(&self) -> &Option<DateTime<Utc>>
pub fn has_beginning(&self) -> &Option<DateTime<Utc>>
The planned or actual beginning of a flow or process.
sourcepub fn has_end(&self) -> &Option<DateTime<Utc>>
pub fn has_end(&self) -> &Option<DateTime<Utc>>
The planned or actual end of a flow or process.
sourcepub fn in_scope_of(&self) -> &Vec<AGENT>
pub fn in_scope_of(&self) -> &Vec<AGENT>
In the context of an agent, a grouping generally used for accounting, reporting.
sourcepub fn name(&self) -> &Option<String>
pub fn name(&self) -> &Option<String>
An informal or formal textual identifier for an object. Does not imply uniqueness.
pub fn note(&self) -> &Option<String>
sourcepub fn proposed_to(&self) -> &Option<AGENT>
pub fn proposed_to(&self) -> &Option<AGENT>
The agent(s) to which the proposal is published.
sourcepub fn publishes(&self) -> &Option<INTENT>
pub fn publishes(&self) -> &Option<INTENT>
The primary intent(s) of this published proposal. Would be used in intent matching.
sourcepub fn purpose(&self) -> &Option<ProposalPurpose>
pub fn purpose(&self) -> &Option<ProposalPurpose>
The type of proposal, offer or request.
sourcepub fn reciprocal(&self) -> &Option<INTENT>
pub fn reciprocal(&self) -> &Option<INTENT>
The reciprocal intent(s) of this published proposal. Not meant to be used for intent matching.
sourcepub fn unit_based(&self) -> &Option<bool>
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>
impl<AGENT, PROPOSALLIST, INTENT> Proposal<AGENT, PROPOSALLIST, INTENT>
sourcepub fn builder() -> ProposalBuilder<AGENT, PROPOSALLIST, INTENT>
pub fn builder() -> ProposalBuilder<AGENT, PROPOSALLIST, INTENT>
Create an empty builder object for Proposal
sourcepub fn into_builder(self) -> ProposalBuilder<AGENT, PROPOSALLIST, INTENT>
pub fn into_builder(self) -> ProposalBuilder<AGENT, PROPOSALLIST, INTENT>
Turns Proposal into ProposalBuilder