Struct vf_rs::vf::Appreciation

source ·
pub struct Appreciation<ECONOMICEVENT> { /* private fields */ }
Expand description

A way to tie an economic event that is given in loose fulfilment for another economic event, without commitments or expectations. Supports the gift economy.

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

Implementations§

source§

impl<ECONOMICEVENT> Appreciation<ECONOMICEVENT>

source

pub fn appreciation_of_mut(&mut self) -> &mut ECONOMICEVENT

The economic event being appreciated (gift economy).

source

pub fn appreciation_with_mut(&mut self) -> &mut ECONOMICEVENT

The economic event implemented in appreciation (gift economy).

source

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

source§

impl<ECONOMICEVENT> Appreciation<ECONOMICEVENT>

source

pub fn set_appreciation_of(&mut self, val: ECONOMICEVENT) -> &mut Self

The economic event being appreciated (gift economy).

source

pub fn set_appreciation_with(&mut self, val: ECONOMICEVENT) -> &mut Self

The economic event implemented in appreciation (gift economy).

source

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

source§

impl<ECONOMICEVENT> Appreciation<ECONOMICEVENT>

source

pub fn appreciation_of(&self) -> &ECONOMICEVENT

The economic event being appreciated (gift economy).

source

pub fn appreciation_with(&self) -> &ECONOMICEVENT

The economic event implemented in appreciation (gift economy).

source

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

source§

impl<ECONOMICEVENT> Appreciation<ECONOMICEVENT>

source

pub fn builder() -> AppreciationBuilder<ECONOMICEVENT>

Create an empty builder object for Appreciation

source

pub fn into_builder(self) -> AppreciationBuilder<ECONOMICEVENT>

Turns Appreciation into AppreciationBuilder

Trait Implementations§

source§

impl<ECONOMICEVENT: Clone> Clone for Appreciation<ECONOMICEVENT>

source§

fn clone(&self) -> Appreciation<ECONOMICEVENT>

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<ECONOMICEVENT: Debug> Debug for Appreciation<ECONOMICEVENT>

source§

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

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

impl<'de, ECONOMICEVENT> Deserialize<'de> for Appreciation<ECONOMICEVENT>
where ECONOMICEVENT: 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<ECONOMICEVENT: PartialEq> PartialEq for Appreciation<ECONOMICEVENT>

source§

fn eq(&self, other: &Appreciation<ECONOMICEVENT>) -> 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<ECONOMICEVENT> Serialize for Appreciation<ECONOMICEVENT>
where ECONOMICEVENT: 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<ECONOMICEVENT> StructuralPartialEq for Appreciation<ECONOMICEVENT>

Auto Trait Implementations§

§

impl<ECONOMICEVENT> Freeze for Appreciation<ECONOMICEVENT>
where ECONOMICEVENT: Freeze,

§

impl<ECONOMICEVENT> RefUnwindSafe for Appreciation<ECONOMICEVENT>
where ECONOMICEVENT: RefUnwindSafe,

§

impl<ECONOMICEVENT> Send for Appreciation<ECONOMICEVENT>
where ECONOMICEVENT: Send,

§

impl<ECONOMICEVENT> Sync for Appreciation<ECONOMICEVENT>
where ECONOMICEVENT: Sync,

§

impl<ECONOMICEVENT> Unpin for Appreciation<ECONOMICEVENT>
where ECONOMICEVENT: Unpin,

§

impl<ECONOMICEVENT> UnwindSafe for Appreciation<ECONOMICEVENT>
where ECONOMICEVENT: 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>,