pub struct Tray {
pub name: String,
pub slots: Vec<TraySlot>,
pub next_slot_id: u32,
}Expand description
A named collection of dice slots.
Fields§
§name: StringTray name.
slots: Vec<TraySlot>Slots currently assigned to the tray.
next_slot_id: u32Next slot identifier to assign.
Slot identifiers are auto-incrementing and are not reused after a slot is removed from the tray.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Tray
impl<'de> Deserialize<'de> for Tray
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 Tray
impl RefUnwindSafe for Tray
impl Send for Tray
impl Sync for Tray
impl Unpin for Tray
impl UnsafeUnpin for Tray
impl UnwindSafe for Tray
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