pub struct RoomAnswer {
pub principal: Option<Principal>,
pub room_bytes: u64,
pub seats: u32,
pub seats_open: u32,
pub need_bytes: u64,
pub unused_bytes: Option<u64>,
pub shortfall_bytes: u64,
pub unchanged: bool,
}Expand description
The answer to a RoomAsk.
Fields§
§principal: Option<Principal>The named employee (unset for seats and for a dry run).
room_bytes: u64Bytes each new employee or seat holds.
seats: u32The account’s seats after this: every seat granted…
seats_open: u32…and the ones not yet filled.
need_bytes: u64What was asked of the account’s room, bytes.
unused_bytes: Option<u64>The account’s room neither stored nor promised, before this; None
when nothing caps it.
shortfall_bytes: u64How much is missing (a dry run’s answer; the real call refuses).
unchanged: boolNothing was written: a dry run, or the retry of a granted order.
Trait Implementations§
Source§impl Clone for RoomAnswer
impl Clone for RoomAnswer
Source§impl Debug for RoomAnswer
impl Debug for RoomAnswer
Source§impl Default for RoomAnswer
impl Default for RoomAnswer
impl Eq for RoomAnswer
Source§impl PartialEq for RoomAnswer
impl PartialEq for RoomAnswer
impl StructuralPartialEq for RoomAnswer
Auto Trait Implementations§
impl Freeze for RoomAnswer
impl RefUnwindSafe for RoomAnswer
impl Send for RoomAnswer
impl Sync for RoomAnswer
impl Unpin for RoomAnswer
impl UnsafeUnpin for RoomAnswer
impl UnwindSafe for RoomAnswer
Blanket Implementations§
impl<T> Allocation for T
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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.