pub struct LibraryStorage {
pub used: Option<u64>,
pub free: Option<u64>,
pub total: Option<u64>,
pub volume: Option<String>,
}Expand description
Space of the storage holding a library, in bytes. A provider gives what it knows:
one without a quota leaves out free and total.
Fields§
§used: Option<u64>§free: Option<u64>§total: Option<u64>§volume: Option<String>Libraries with the same value share this storage: count its space once.
Trait Implementations§
Source§impl Clone for LibraryStorage
impl Clone for LibraryStorage
Source§fn clone(&self) -> LibraryStorage
fn clone(&self) -> LibraryStorage
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 LibraryStorage
impl Debug for LibraryStorage
Source§impl Default for LibraryStorage
impl Default for LibraryStorage
Source§fn default() -> LibraryStorage
fn default() -> LibraryStorage
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LibraryStorage
impl<'de> Deserialize<'de> for LibraryStorage
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<LibraryStorage, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<LibraryStorage, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for LibraryStorage
impl PartialEq for LibraryStorage
Source§impl Serialize for LibraryStorage
impl Serialize for LibraryStorage
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for LibraryStorage
Auto Trait Implementations§
impl Forget for LibraryStorage
impl Freeze for LibraryStorage
impl Move for LibraryStorage
impl RefUnwindSafe for LibraryStorage
impl Send for LibraryStoragewhere
RawVecInner: Send,
impl Sync for LibraryStoragewhere
RawVecInner: Sync,
impl Unpin for LibraryStorage
impl UnsafeUnpin for LibraryStorage
impl UnwindSafe for LibraryStoragewhere
RawVecInner: UnwindSafe,
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