pub enum JsonDataBody {
Bytes(JsonTree<Bytes>),
Blocks(JsonTree<Blocks>),
}Expand description
The "unit" field, the "tree" field, and the "shared-inodes" field of JsonData.
Variants§
Bytes(JsonTree<Bytes>)
Tree where size is bytes.
Blocks(JsonTree<Blocks>)
Tree where size is blocks.
Trait Implementations§
Source§impl Clone for JsonDataBody
impl Clone for JsonDataBody
Source§fn clone(&self) -> JsonDataBody
fn clone(&self) -> JsonDataBody
Returns a duplicate of the value. Read more
1.0.0 · 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 JsonDataBody
impl Debug for JsonDataBody
Source§impl<'de> Deserialize<'de> for JsonDataBody
impl<'de> Deserialize<'de> for JsonDataBody
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
Source§impl Serialize for JsonDataBody
impl Serialize for JsonDataBody
Source§impl TryFrom<JsonDataBody> for JsonTree<Blocks>
impl TryFrom<JsonDataBody> for JsonTree<Blocks>
Source§type Error = TryIntoError<JsonDataBody>
type Error = TryIntoError<JsonDataBody>
The type returned in the event of a conversion error.
Source§fn try_from(value: JsonDataBody) -> Result<Self, TryIntoError<JsonDataBody>>
fn try_from(value: JsonDataBody) -> Result<Self, TryIntoError<JsonDataBody>>
Performs the conversion.
Source§impl TryFrom<JsonDataBody> for JsonTree<Bytes>
impl TryFrom<JsonDataBody> for JsonTree<Bytes>
Source§type Error = TryIntoError<JsonDataBody>
type Error = TryIntoError<JsonDataBody>
The type returned in the event of a conversion error.
Source§fn try_from(value: JsonDataBody) -> Result<Self, TryIntoError<JsonDataBody>>
fn try_from(value: JsonDataBody) -> Result<Self, TryIntoError<JsonDataBody>>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for JsonDataBody
impl RefUnwindSafe for JsonDataBody
impl Send for JsonDataBody
impl Sync for JsonDataBody
impl Unpin for JsonDataBody
impl UnwindSafe for JsonDataBody
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<X> Pipe for X
impl<X> Pipe for X
Source§fn pipe_ref<'a, Return, Function>(&'a self, f: Function) -> Returnwhere
Function: FnOnce(&'a Self) -> Return,
fn pipe_ref<'a, Return, Function>(&'a self, f: Function) -> Returnwhere
Function: FnOnce(&'a Self) -> Return,
Source§fn pipe_mut<'a, Return, Function>(&'a mut self, f: Function) -> Returnwhere
Function: FnOnce(&'a mut Self) -> Return,
fn pipe_mut<'a, Return, Function>(&'a mut self, f: Function) -> Returnwhere
Function: FnOnce(&'a mut Self) -> Return,
Source§fn pipe_as_ref<'a, Param, Return, Function>(&'a self, f: Function) -> Return
fn pipe_as_ref<'a, Param, Return, Function>(&'a self, f: Function) -> Return
Apply
f to &self where f takes a single parameter of type Param
and Self implements trait AsRef<Param>. Read moreSource§fn pipe_as_mut<'a, Param, Return, Function>(&'a mut self, f: Function) -> Return
fn pipe_as_mut<'a, Param, Return, Function>(&'a mut self, f: Function) -> Return
Apply
f to &mut self where f takes a single parameter of type Param
and Self implements trait AsMut<Param>. Read moreSource§fn pipe_deref<'a, Param, Return, Function>(&'a self, f: Function) -> Return
fn pipe_deref<'a, Param, Return, Function>(&'a self, f: Function) -> Return
Apply
f to &self where f takes a single parameter of type Param
and Self implements trait Deref<Target = Param>. Read moreSource§fn pipe_deref_mut<'a, Param, Return, Function>(
&'a mut self,
f: Function,
) -> Returnwhere
Self: DerefMut<Target = Param>,
Param: 'a + ?Sized,
Function: FnOnce(&'a mut Param) -> Return,
fn pipe_deref_mut<'a, Param, Return, Function>(
&'a mut self,
f: Function,
) -> Returnwhere
Self: DerefMut<Target = Param>,
Param: 'a + ?Sized,
Function: FnOnce(&'a mut Param) -> Return,
Apply
f to &mut self where f takes a single parameter of type Param
and Self implements trait DerefMut<Target = Param>. Read moreSource§fn pipe_borrow<'a, Param, Return, Function>(&'a self, f: Function) -> Return
fn pipe_borrow<'a, Param, Return, Function>(&'a self, f: Function) -> Return
Apply
f to &self where f takes a single parameter of type Param
and Self implements trait Borrow<Param>. Read moreSource§fn pipe_borrow_mut<'a, Param, Return, Function>(
&'a mut self,
f: Function,
) -> Return
fn pipe_borrow_mut<'a, Param, Return, Function>( &'a mut self, f: Function, ) -> Return
Apply
f to &mut self where f takes a single parameter of type Param
and Self implements trait BorrowMut<Param>. Read more