pub struct Volume {
pub id: Uuid,
pub name: VolumeName,
pub size_gi: u64,
pub fs_type: String,
pub active_location: Option<String>,
pub locations: Vec<VolumeLocation>,
pub format: Option<DateTime<Utc>>,
pub created: DateTime<Utc>,
pub modified: DateTime<Utc>,
}
Fields§
§id: Uuid
§name: VolumeName
§size_gi: u64
§fs_type: String
§active_location: Option<String>
§locations: Vec<VolumeLocation>
§format: Option<DateTime<Utc>>
§created: DateTime<Utc>
§modified: DateTime<Utc>
Implementations§
Source§impl Volume
impl Volume
pub fn is_deleting(&self) -> bool
pub fn progress( &self, ) -> Option<(&LocationVolumeStatus, &StateLocationVolumeProgress)>
Trait 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 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