Type

Enum Type 

Source
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>), HashMapS(HashMap<String, Type>), FileOrData(FileOrData), CustomEnum(CustomEnum), AdvancedEnum(AdvanceEnum), Vec(Vec<Type>), Bytes(Vec<u8>), 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>)

§

HashMapS(HashMap<String, Type>)

§

FileOrData(FileOrData)

§

CustomEnum(CustomEnum)

§

AdvancedEnum(AdvanceEnum)

§

Vec(Vec<Type>)

§

Bytes(Vec<u8>)

§

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 duplicate 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>

Source§

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

Source§

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

Source§

impl TryInto<String> for Type

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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 Freeze for Type

§

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 T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

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

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 T
where T: Clone,

Source§

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 T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

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

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

Source§

type Error = Infallible

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

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

Performs the conversion.
Source§

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

Source§

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

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

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

Performs the conversion.
Source§

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