pub struct TraySlot {
pub die_name: String,
pub slot_id: u32,
pub locked: bool,
pub current_value: Option<FaceValue>,
}Expand description
A single die slot inside a Tray.
Fields§
§die_name: StringCanonical name of the die assigned to this slot.
slot_id: u32Stable slot identifier within the tray.
locked: boolWhether rolling the tray should preserve this slot’s current value.
current_value: Option<FaceValue>Most recent rolled value for this slot.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TraySlot
impl<'de> Deserialize<'de> for TraySlot
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 TraySlot
impl RefUnwindSafe for TraySlot
impl Send for TraySlot
impl Sync for TraySlot
impl Unpin for TraySlot
impl UnsafeUnpin for TraySlot
impl UnwindSafe for TraySlot
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