pub struct SlotStatus {
pub kind: i32,
pub name: String,
pub desc: String,
pub format: String,
pub origin: i32,
pub state: i32,
pub damage: String,
pub deps: Vec<i32>,
pub bytes: u64,
pub build: String,
pub version: String,
pub download: Option<SlotDownload>,
}Expand description
SlotStatus describes the current state of a single slot on the device. The data fields are generic so a host renders a kind it has never seen.
Fields§
§kind: i32Slot type
name: StringHuman-readable slot name
desc: StringOwner-facing description of the data this slot holds
format: StringThe file that fills this slot, its required shape and what is refused
origin: i32Nature of the data (personal, reference)
state: i32Whether the slot is empty, filled or damaged
damage: StringWhy the slot is damaged, empty otherwise
deps: Vec<i32>Slots that must be filled before this one is actionable
bytes: u64Bytes on disk for this slot (0 if empty)
build: StringReference assembly the data is keyed to (e.g. “GRCh38.p14”)
version: StringThe dataset’s own release, if it has one (e.g. dbSNP “157”)
download: Option<SlotDownload>Advertised public download, absent if none
Implementations§
Source§impl SlotStatus
impl SlotStatus
Sourcepub fn kind(&self) -> SlotKind
pub fn kind(&self) -> SlotKind
Returns the enum value of kind, or the default if the field is set to an invalid enum value.
Sourcepub fn origin(&self) -> SlotOrigin
pub fn origin(&self) -> SlotOrigin
Returns the enum value of origin, or the default if the field is set to an invalid enum value.
Sourcepub fn set_origin(&mut self, value: SlotOrigin)
pub fn set_origin(&mut self, value: SlotOrigin)
Sets origin to the provided enum value.
Sourcepub fn state(&self) -> SlotState
pub fn state(&self) -> SlotState
Returns the enum value of state, or the default if the field is set to an invalid enum value.
Trait Implementations§
Source§impl Clone for SlotStatus
impl Clone for SlotStatus
Source§fn clone(&self) -> SlotStatus
fn clone(&self) -> SlotStatus
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SlotStatus
impl Debug for SlotStatus
Source§impl Default for SlotStatus
impl Default for SlotStatus
impl Eq for SlotStatus
Source§impl Hash for SlotStatus
impl Hash for SlotStatus
Source§impl Message for SlotStatus
impl Message for SlotStatus
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.