pub struct StatusPayloadV2 {
pub snapshot: StatusSnapshotV2,
pub drives: Option<Vec<DriveMetrics>>,
}Expand description
Flat v2 status response with optional drive capacity data.
The base snapshot is flattened so the JSON shape remains compatible with
existing v2 clients. Keeping drives in this wrapper also preserves source
compatibility for downstream Rust code that constructs StatusSnapshotV2
literals. Missing or null drives means unavailable/legacy; an empty list
means enumeration succeeded and found no eligible filesystems.
Fields§
§snapshot: StatusSnapshotV2§drives: Option<Vec<DriveMetrics>>Implementations§
Trait Implementations§
Source§impl Clone for StatusPayloadV2
impl Clone for StatusPayloadV2
Source§fn clone(&self) -> StatusPayloadV2
fn clone(&self) -> StatusPayloadV2
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StatusPayloadV2
impl Debug for StatusPayloadV2
Source§impl<'de> Deserialize<'de> for StatusPayloadV2
impl<'de> Deserialize<'de> for StatusPayloadV2
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
Source§impl PartialEq for StatusPayloadV2
impl PartialEq for StatusPayloadV2
Source§impl Serialize for StatusPayloadV2
impl Serialize for StatusPayloadV2
impl StructuralPartialEq for StatusPayloadV2
Auto Trait Implementations§
impl Freeze for StatusPayloadV2
impl RefUnwindSafe for StatusPayloadV2
impl Send for StatusPayloadV2
impl Sync for StatusPayloadV2
impl Unpin for StatusPayloadV2
impl UnsafeUnpin for StatusPayloadV2
impl UnwindSafe for StatusPayloadV2
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