[][src]Enum json_to_rust::Wrapper

pub enum Wrapper {
    Bottom {
        left: String,
        right: String,
    },
    Nested {
        left: Box<Self>,
        right: Box<Self>,
    },
}

Variants

Bottom

Fields of Bottom

left: Stringright: String
Nested

Fields of Nested

left: Box<Self>right: Box<Self>

Implementations

impl Wrapper[src]

pub fn wrap(self, other: Self) -> Self[src]

pub fn new(left: impl Into<String>, right: impl Into<String>) -> Self[src]

pub fn std_vec() -> Self[src]

pub fn custom_vec(left: impl Into<String>) -> Self[src]

pub fn std_map() -> Self[src]

pub fn custom_map(left: impl Into<String>) -> Self[src]

pub fn tuple() -> Self[src]

pub fn option() -> Self[src]

pub fn apply(&self, item: String) -> String[src]

Trait Implementations

impl Clone for Wrapper[src]

impl Debug for Wrapper[src]

impl Default for Wrapper[src]

Auto Trait Implementations

impl RefUnwindSafe for Wrapper

impl Send for Wrapper

impl Sync for Wrapper

impl Unpin for Wrapper

impl UnwindSafe for Wrapper

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.