pub enum Type {
Show 25 variants U8(u8), U16(u16), U32(u32), U64(u64), U128(u128), USize(usize), I8(i8), I16(i16), I32(i32), I64(i64), I128(i128), ISize(isize), F32(f32), F64(f64), Bool(bool), String(String), Path(PathBuf), HashMapSS(HashMap<String, String, RandomState>), HashMapS(HashMap<String, Type, RandomState>), FileOrData(FileOrData), CustomEnum(CustomEnum), AdvancedEnum(AdvanceEnum), Vec(Vec<Type, Global>), Bytes(Vec<u8, Global>), None,
}

Variants§

§

U8(u8)

§

U16(u16)

§

U32(u32)

§

U64(u64)

§

U128(u128)

§

USize(usize)

§

I8(i8)

§

I16(i16)

§

I32(i32)

§

I64(i64)

§

I128(i128)

§

ISize(isize)

§

F32(f32)

§

F64(f64)

§

Bool(bool)

§

String(String)

§

Path(PathBuf)

§

HashMapSS(HashMap<String, String, RandomState>)

§

HashMapS(HashMap<String, Type, RandomState>)

§

FileOrData(FileOrData)

§

CustomEnum(CustomEnum)

§

AdvancedEnum(AdvanceEnum)

§

Vec(Vec<Type, Global>)

§

Bytes(Vec<u8, Global>)

§

None

Implementations§

source§

impl Type

source

pub fn to_tag(&self) -> TypeTag

Trait Implementations§

source§

impl Clone for Type

source§

fn clone(&self) -> Type

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Type

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for Type

source§

fn deserialize<__D>(
    __deserializer: __D
) -> Result<Type, <__D as Deserializer<'de>>::Error>where
    __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Display for Type

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl From<&str> for Type

source§

fn from(value: &str) -> Type

Converts to this type from the input type.
source§

impl From<String> for Type

source§

fn from(value: String) -> Type

Converts to this type from the input type.
source§

impl From<Type> for Value

source§

fn from(value: Type) -> Value

Converts to this type from the input type.
source§

impl From<bool> for Type

source§

fn from(value: bool) -> Type

Converts to this type from the input type.
source§

impl From<f32> for Type

source§

fn from(value: f32) -> Type

Converts to this type from the input type.
source§

impl From<f64> for Type

source§

fn from(value: f64) -> Type

Converts to this type from the input type.
source§

impl From<i128> for Type

source§

fn from(value: i128) -> Type

Converts to this type from the input type.
source§

impl From<i16> for Type

source§

fn from(value: i16) -> Type

Converts to this type from the input type.
source§

impl From<i32> for Type

source§

fn from(value: i32) -> Type

Converts to this type from the input type.
source§

impl From<i64> for Type

source§

fn from(value: i64) -> Type

Converts to this type from the input type.
source§

impl From<i8> for Type

source§

fn from(value: i8) -> Type

Converts to this type from the input type.
source§

impl From<isize> for Type

source§

fn from(value: isize) -> Type

Converts to this type from the input type.
source§

impl From<u128> for Type

source§

fn from(value: u128) -> Type

Converts to this type from the input type.
source§

impl From<u16> for Type

source§

fn from(value: u16) -> Type

Converts to this type from the input type.
source§

impl From<u32> for Type

source§

fn from(value: u32) -> Type

Converts to this type from the input type.
source§

impl From<u64> for Type

source§

fn from(value: u64) -> Type

Converts to this type from the input type.
source§

impl From<u8> for Type

source§

fn from(value: u8) -> Type

Converts to this type from the input type.
source§

impl From<usize> for Type

source§

fn from(value: usize) -> Type

Converts to this type from the input type.
source§

impl Hash for Type

source§

fn hash<H>(&self, state: &mut H)where
    H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)where
    H: Hasher,
    Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl Serialize for Type

source§

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
source§

impl TBytes for Type

source§

fn size(&self) -> usize

source§

fn to_bytes(&self) -> Vec<u8, Global>

source§

fn from_bytes(bytes: &mut Vec<u8, Global>) -> Option<Type>

source§

fn from_bytes_ref(buffer: &[u8]) -> Option<Self>where
    Self: Sized,

source§

impl TryInto<String> for Type

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<String, <Type as TryInto<String>>::Error>

Performs the conversion.
source§

impl TryInto<bool> for Type

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<bool, <Type as TryInto<bool>>::Error>

Performs the conversion.
source§

impl TryInto<f32> for Type

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<f32, <Type as TryInto<f32>>::Error>

Performs the conversion.
source§

impl TryInto<f64> for Type

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<f64, <Type as TryInto<f64>>::Error>

Performs the conversion.
source§

impl TryInto<i128> for Type

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<i128, <Type as TryInto<i128>>::Error>

Performs the conversion.
source§

impl TryInto<i16> for Type

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<i16, <Type as TryInto<i16>>::Error>

Performs the conversion.
source§

impl TryInto<i32> for Type

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<i32, <Type as TryInto<i32>>::Error>

Performs the conversion.
source§

impl TryInto<i64> for Type

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<i64, <Type as TryInto<i64>>::Error>

Performs the conversion.
source§

impl TryInto<i8> for Type

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<i8, <Type as TryInto<i8>>::Error>

Performs the conversion.
source§

impl TryInto<isize> for Type

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<isize, <Type as TryInto<isize>>::Error>

Performs the conversion.
source§

impl TryInto<u128> for Type

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<u128, <Type as TryInto<u128>>::Error>

Performs the conversion.
source§

impl TryInto<u16> for Type

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<u16, <Type as TryInto<u16>>::Error>

Performs the conversion.
source§

impl TryInto<u32> for Type

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<u32, <Type as TryInto<u32>>::Error>

Performs the conversion.
source§

impl TryInto<u64> for Type

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<u64, <Type as TryInto<u64>>::Error>

Performs the conversion.
source§

impl TryInto<u8> for Type

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<u8, <Type as TryInto<u8>>::Error>

Performs the conversion.
source§

impl TryInto<usize> for Type

§

type Error = ()

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<usize, <Type as TryInto<usize>>::Error>

Performs the conversion.

Auto Trait Implementations§

§

impl RefUnwindSafe for Type

§

impl Send for Type

§

impl Sync for Type

§

impl Unpin for Type

§

impl UnwindSafe for Type

Blanket Implementations§

source§

impl<T> Any for Twhere
    T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere
    T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere
    T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere
    U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere
    T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for Twhere
    T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for Twhere
    U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere
    U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for Twhere
    T: for<'de> Deserialize<'de>,