pub struct Charge {
pub amount: f64,
pub currency: String,
pub recorded: bool,
pub duplicate: bool,
}Fields§
§amount: f64Major-unit amount the server actually recorded (its price, not ours).
currency: String§recorded: bool§duplicate: boolTrue when this (traveler, world, item) was already charged — the server deduplicates, so “buying again” is free and safe.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Charge
impl<'de> Deserialize<'de> for Charge
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
Auto Trait Implementations§
impl Freeze for Charge
impl RefUnwindSafe for Charge
impl Send for Charge
impl Sync for Charge
impl Unpin for Charge
impl UnsafeUnpin for Charge
impl UnwindSafe for Charge
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