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.
Implementations§
source§impl<ECONOMICEVENT> Appreciation<ECONOMICEVENT>
impl<ECONOMICEVENT> Appreciation<ECONOMICEVENT>
sourcepub fn appreciation_of_mut(&mut self) -> &mut ECONOMICEVENT
pub fn appreciation_of_mut(&mut self) -> &mut ECONOMICEVENT
The economic event being appreciated (gift economy).
sourcepub fn appreciation_with_mut(&mut self) -> &mut ECONOMICEVENT
pub fn appreciation_with_mut(&mut self) -> &mut ECONOMICEVENT
The economic event implemented in appreciation (gift economy).
pub fn note_mut(&mut self) -> &mut Option<String>
source§impl<ECONOMICEVENT> Appreciation<ECONOMICEVENT>
impl<ECONOMICEVENT> Appreciation<ECONOMICEVENT>
sourcepub fn set_appreciation_of(&mut self, val: ECONOMICEVENT) -> &mut Self
pub fn set_appreciation_of(&mut self, val: ECONOMICEVENT) -> &mut Self
The economic event being appreciated (gift economy).
sourcepub fn set_appreciation_with(&mut self, val: ECONOMICEVENT) -> &mut Self
pub fn set_appreciation_with(&mut self, val: ECONOMICEVENT) -> &mut Self
The economic event implemented in appreciation (gift economy).
pub fn set_note(&mut self, val: Option<String>) -> &mut Self
source§impl<ECONOMICEVENT> Appreciation<ECONOMICEVENT>
impl<ECONOMICEVENT> Appreciation<ECONOMICEVENT>
sourcepub fn appreciation_of(&self) -> &ECONOMICEVENT
pub fn appreciation_of(&self) -> &ECONOMICEVENT
The economic event being appreciated (gift economy).
sourcepub fn appreciation_with(&self) -> &ECONOMICEVENT
pub fn appreciation_with(&self) -> &ECONOMICEVENT
The economic event implemented in appreciation (gift economy).
pub fn note(&self) -> &Option<String>
source§impl<ECONOMICEVENT> Appreciation<ECONOMICEVENT>
impl<ECONOMICEVENT> Appreciation<ECONOMICEVENT>
sourcepub fn builder() -> AppreciationBuilder<ECONOMICEVENT>
pub fn builder() -> AppreciationBuilder<ECONOMICEVENT>
Create an empty builder object for Appreciation
sourcepub fn into_builder(self) -> AppreciationBuilder<ECONOMICEVENT>
pub fn into_builder(self) -> AppreciationBuilder<ECONOMICEVENT>
Turns Appreciation into AppreciationBuilder
Trait Implementations§
source§impl<ECONOMICEVENT: Clone> Clone for Appreciation<ECONOMICEVENT>
impl<ECONOMICEVENT: Clone> Clone for Appreciation<ECONOMICEVENT>
source§fn clone(&self) -> Appreciation<ECONOMICEVENT>
fn clone(&self) -> Appreciation<ECONOMICEVENT>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<ECONOMICEVENT: Debug> Debug for Appreciation<ECONOMICEVENT>
impl<ECONOMICEVENT: Debug> Debug for Appreciation<ECONOMICEVENT>
source§impl<'de, ECONOMICEVENT> Deserialize<'de> for Appreciation<ECONOMICEVENT>where
ECONOMICEVENT: Deserialize<'de>,
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>,
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>
impl<ECONOMICEVENT: PartialEq> PartialEq for Appreciation<ECONOMICEVENT>
source§fn eq(&self, other: &Appreciation<ECONOMICEVENT>) -> bool
fn eq(&self, other: &Appreciation<ECONOMICEVENT>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<ECONOMICEVENT> Serialize for Appreciation<ECONOMICEVENT>where
ECONOMICEVENT: Serialize,
impl<ECONOMICEVENT> Serialize for Appreciation<ECONOMICEVENT>where
ECONOMICEVENT: Serialize,
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> 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