pub struct SandboxInfo {
pub name: String,
pub status: String,
pub instance_type: String,
pub labels: BTreeMap<String, String>,
pub config: BTreeMap<String, String>,
pub devices: BTreeMap<String, Props>,
pub profiles: Vec<String>,
pub created_at: String,
pub description: String,
}Expand description
A summary of an instance, as listed.
Fields§
§name: String§status: String§instance_type: String§labels: BTreeMap<String, String>user.* config keys with the prefix stripped.
config: BTreeMap<String, String>§devices: BTreeMap<String, Props>Instance-local devices.
profiles: Vec<String>§created_at: String§description: StringImplementations§
Source§impl SandboxInfo
impl SandboxInfo
pub fn from_api(v: &Value) -> SandboxInfo
Sourcepub fn matches(&self, filters: &[LabelFilter]) -> bool
pub fn matches(&self, filters: &[LabelFilter]) -> bool
Whether this instance matches every filter.
Trait Implementations§
Source§impl Clone for SandboxInfo
impl Clone for SandboxInfo
Source§impl Debug for SandboxInfo
impl Debug for SandboxInfo
Auto Trait Implementations§
impl Freeze for SandboxInfo
impl RefUnwindSafe for SandboxInfo
impl Send for SandboxInfo
impl Sync for SandboxInfo
impl Unpin for SandboxInfo
impl UnsafeUnpin for SandboxInfo
impl UnwindSafe for SandboxInfo
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