pub enum ByteCapacity {
B(u64),
KB(u64),
MB(u64),
GB(u64),
TB(u64),
}
Variants§
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ByteCapacity
impl<'de> Deserialize<'de> for ByteCapacity
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 ByteCapacity
impl RefUnwindSafe for ByteCapacity
impl Send for ByteCapacity
impl Sync for ByteCapacity
impl Unpin for ByteCapacity
impl UnwindSafe for ByteCapacity
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