pub struct PendingChoice {
pub kind: &'static str,
pub cost: f64,
pub message: String,
}Expand description
An offer waiting for the player’s answer.
Fields§
§kind: &'static strfireRescue (pay to stop a fire spreading) or bombThreat (pay the
ransom, or let the search for the bomb begin).
cost: f64What accepting costs, in dollars.
message: StringThe offer, ready to show a player.
Trait Implementations§
Source§impl Clone for PendingChoice
impl Clone for PendingChoice
Source§fn clone(&self) -> PendingChoice
fn clone(&self) -> PendingChoice
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 moreAuto Trait Implementations§
impl Freeze for PendingChoice
impl RefUnwindSafe for PendingChoice
impl Send for PendingChoice
impl Sync for PendingChoice
impl Unpin for PendingChoice
impl UnsafeUnpin for PendingChoice
impl UnwindSafe for PendingChoice
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