pub struct ESCurrencyUnit {
pub currency_id: Uuid,
pub amount: i64,
}Expand description
A currency amount as produced by a reward/price behavior, before it is
resolved against the character’s wallet. Kept separate from CurrencyUnit
so behavior outputs cannot be mistaken for stored balances.
Fields§
§currency_id: Uuid§amount: i64Trait Implementations§
Source§impl Clone for ESCurrencyUnit
impl Clone for ESCurrencyUnit
Source§fn clone(&self) -> ESCurrencyUnit
fn clone(&self) -> ESCurrencyUnit
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 Debug for ESCurrencyUnit
impl Debug for ESCurrencyUnit
Source§impl PartialEq for ESCurrencyUnit
impl PartialEq for ESCurrencyUnit
impl Eq for ESCurrencyUnit
impl StructuralPartialEq for ESCurrencyUnit
Auto Trait Implementations§
impl Freeze for ESCurrencyUnit
impl RefUnwindSafe for ESCurrencyUnit
impl Send for ESCurrencyUnit
impl Sync for ESCurrencyUnit
impl Unpin for ESCurrencyUnit
impl UnwindSafe for ESCurrencyUnit
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more