pub struct Intent {
pub action: Option<String>,
pub resource_conforms_to: Option<Iri>,
pub resource_quantity: Option<Box<Measure>>,
pub available_quantity: Option<Box<Measure>>,
pub minimum_quantity: Option<Box<Measure>>,
}Expand description
A proposed economic transaction describing what is being offered or requested in a {@link Proposal}.
The type https://w3id.org/valueflows/ont/vf#Intent.
Fields§
§action: Option<String>The type of economic transaction. The value of this property should be
either "deliverService" or "transfer".
resource_conforms_to: Option<Iri>The type of an economic resource. Could be any URI.
resource_quantity: Option<Box<Measure>>The amount and unit of the economic resource.
available_quantity: Option<Box<Measure>>The quantity of the offered resource currently available.
minimum_quantity: Option<Box<Measure>>The minimum possible quantity of the resource.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Intent
impl<'de> Deserialize<'de> for Intent
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Intent
Auto Trait Implementations§
impl Freeze for Intent
impl RefUnwindSafe for Intent
impl Send for Intent
impl Sync for Intent
impl Unpin for Intent
impl UnsafeUnpin for Intent
impl UnwindSafe for Intent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more