pub struct NewDevice {
pub phone: bool,
pub spaces: Option<Vec<SpaceId>>,
}Expand description
What the person chose for a new device of theirs, on the device that shows the code: a computer takes every space of this device’s, and the spaces given to it later; a phone takes the personal space alone, and asks before it takes a space given to it later.
Fields§
§phone: boolWhether it is a phone, which asks before it takes a space given to it later.
spaces: Option<Vec<SpaceId>>The spaces besides the personal one that it gets, of those this device holds; None
for the default: every space for a computer, none for a phone.
Implementations§
Trait Implementations§
impl Eq for NewDevice
impl StructuralPartialEq for NewDevice
Auto Trait Implementations§
impl Forget for NewDevice
impl Freeze for NewDevice
impl Move for NewDevice
impl RefUnwindSafe for NewDevice
impl Send for NewDevice
impl Sync for NewDevice
impl Unpin for NewDevice
impl UnsafeUnpin for NewDevice
impl UnwindSafe for NewDevice
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.