Skip to main content

Storage

Struct Storage 

Source
pub struct Storage {
    pub uuid: String,
    pub title: String,
    pub size_gib: u64,
    pub tier: String,
    pub zone: String,
    pub state: String,
    pub kind: StorageKind,
    pub labels: Vec<Label>,
    pub origin: Option<String>,
    pub created_ms: u64,
    pub import: Option<Import>,
    pub transition: Option<Transition>,
}

Fields§

§uuid: String§title: String§size_gib: u64§tier: String§zone: String§state: String§kind: StorageKind§labels: Vec<Label>§origin: Option<String>

The volume this was made from. On a Resize Backup it points at the boot volume that was resized — which, once that server is deleted, names a uuid that no longer resolves (behaviour 9, and Fault::OrphanResizeBackup makes it so immediately).

§created_ms: u64

Virtual ms, rendered as created. It IS sent — measured against the live account 2026-09-20 on both GET /1.3/storage/private and GET /1.3/storage/{uuid}. This crate used to withhold it and claim the provider did; Fault::WithholdCreatedField now takes it away only when armed by name, as a hypothesis.

§import: Option<Import>

The direct-upload session, if one was ever opened on this volume.

It has its OWN clock, and that is the point. MEASURED on the live estate: a 43 485 184-byte ISO was created 09:36:16Z and completed 09:36:21Z — five seconds — and then the STORAGE sat in syncing for roughly 100 to 130 seconds more before it turned online. The poller read syncing at 65 s and at 97 s while this object already said completed. A mock that turned the storage online when the upload finished would hide the entire cost, which is all of the cost.

§transition: Option<Transition>

Trait Implementations§

Source§

impl Clone for Storage

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Storage

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.