pub struct Volume {
pub id: String,
pub label: Option<String>,
pub size_gb: f64,
pub status: String,
pub pvc_name: Option<String>,
pub failure_reason: Option<String>,
pub created_at: String,
}Expand description
An independent, PVC-backed storage volume (VolumeOut/VolumeAccepted).
Client::create_volume’s response only ever populates id/label/
status/created_at – poll Client::get_volume for status to
reach "ready" (or "failed") before mounting it via
crate::CreateSandboxOptions::volume_mounts.
Fields§
§id: String§label: Option<String>§size_gb: f64§status: String"queued", "creating", "ready", "failed", or "deleting".
pvc_name: Option<String>§failure_reason: Option<String>§created_at: StringTrait Implementations§
Source§impl<'de> Deserialize<'de> for Volume
impl<'de> Deserialize<'de> for Volume
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
Auto Trait Implementations§
impl Freeze for Volume
impl RefUnwindSafe for Volume
impl Send for Volume
impl Sync for Volume
impl Unpin for Volume
impl UnsafeUnpin for Volume
impl UnwindSafe for Volume
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