pub struct WorkspaceView {
pub slot: String,
pub state: WorkspaceSlotState,
pub usable_bytes: Option<u64>,
}Expand description
A member’s workspace slot as the administrator sees it: its state and
usable size, never its contents. Always null in Step 3b-2.
§Examples
use stratum_node_core::{WorkspaceSlotState, WorkspaceView};
let view = WorkspaceView { slot: "slot-1".to_owned(), state: WorkspaceSlotState::Assigned, usable_bytes: Some(1024) };
assert_eq!(serde_json::to_string(&view)?, r#"{"slot":"slot-1","state":"assigned","usable_bytes":1024}"#);Fields§
§slot: StringThe slot’s name.
state: WorkspaceSlotStateThe slot’s state.
usable_bytes: Option<u64>The usable size measured when it was first assigned, in bytes.
Trait Implementations§
Source§impl Clone for WorkspaceView
impl Clone for WorkspaceView
Source§impl Debug for WorkspaceView
impl Debug for WorkspaceView
Source§impl<'de> Deserialize<'de> for WorkspaceView
impl<'de> Deserialize<'de> for WorkspaceView
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
impl Eq for WorkspaceView
Source§impl Hash for WorkspaceView
impl Hash for WorkspaceView
Source§impl PartialEq for WorkspaceView
impl PartialEq for WorkspaceView
Source§impl Serialize for WorkspaceView
impl Serialize for WorkspaceView
impl StructuralPartialEq for WorkspaceView
Auto Trait Implementations§
impl Forget for WorkspaceView
impl Freeze for WorkspaceView
impl Move for WorkspaceView
impl RefUnwindSafe for WorkspaceView
impl Send for WorkspaceViewwhere
RawVecInner: Send,
impl Sync for WorkspaceViewwhere
RawVecInner: Sync,
impl Unpin for WorkspaceView
impl UnsafeUnpin for WorkspaceView
impl UnwindSafe for WorkspaceViewwhere
RawVecInner: UnwindSafe,
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