pub struct ChargeResult {
pub ok: bool,
pub reason: Option<String>,
pub delta: f64,
}Expand description
What a charged command did.
Fields§
§ok: boolWhether it was carried out.
reason: Option<String>Why it was refused, ready to show a player. None when carried out.
delta: f64The change to the player’s money: negative for a charge, positive for a refund, 0 when refused.
Trait Implementations§
Source§impl Clone for ChargeResult
impl Clone for ChargeResult
Source§fn clone(&self) -> ChargeResult
fn clone(&self) -> ChargeResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ChargeResult
impl Debug for ChargeResult
Source§impl PartialEq for ChargeResult
impl PartialEq for ChargeResult
Source§fn eq(&self, other: &ChargeResult) -> bool
fn eq(&self, other: &ChargeResult) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ChargeResult
Auto Trait Implementations§
impl Freeze for ChargeResult
impl RefUnwindSafe for ChargeResult
impl Send for ChargeResult
impl Sync for ChargeResult
impl Unpin for ChargeResult
impl UnsafeUnpin for ChargeResult
impl UnwindSafe for ChargeResult
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