#[non_exhaustive]pub enum Bytes {
Bytes,
KiloBytes,
MegaBytes,
GigaBytes,
TeraBytes,
PetaBytes,
Raw(String),
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Bytes
b
KiloBytes
kb
MegaBytes
mb
GigaBytes
gb
TeraBytes
tb
PetaBytes
pb
Raw(String)
A value this version of the specification doesn’t list.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Bytes
impl<'de> Deserialize<'de> for Bytes
Source§fn deserialize<D__>(
deserializer: D__,
) -> Result<Bytes, <D__ as Deserializer<'de>>::Error>where
D__: Deserializer<'de>,
fn deserialize<D__>(
deserializer: D__,
) -> Result<Bytes, <D__ as Deserializer<'de>>::Error>where
D__: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Bytes
Source§impl Serialize for Bytes
impl Serialize for Bytes
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 Bytes
Auto Trait Implementations§
impl Freeze for Bytes
impl RefUnwindSafe for Bytes
impl Send for Bytes
impl Sync for Bytes
impl Unpin for Bytes
impl UnsafeUnpin for Bytes
impl UnwindSafe for Bytes
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.