pub enum IDLType {
Bool,
U8,
U64,
U128,
Address,
Signer,
TypeParam(u16),
Tuple(Vec<IDLType, Global>),
Vector(Box<IDLType, Global>),
Struct(IDLStructType),
}
Expand description
A type represented in the IDL.
Variants
Bool
U8
U64
U128
Address
Signer
TypeParam(u16)
The number represents the index of the type parameter within the parent struct.
Tuple(Vec<IDLType, Global>)
Vector(Box<IDLType, Global>)
Struct(IDLStructType)
Trait Implementations
sourceimpl<'de> Deserialize<'de> for IDLType
impl<'de> Deserialize<'de> for IDLType
sourcefn deserialize<__D>(
__deserializer: __D
) -> Result<IDLType, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<IDLType, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Serialize for IDLType
impl Serialize for IDLType
sourcefn 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 Eq for IDLType
impl StructuralEq for IDLType
impl StructuralPartialEq for IDLType
Auto Trait Implementations
impl RefUnwindSafe for IDLType
impl Send for IDLType
impl Sync for IDLType
impl Unpin for IDLType
impl UnwindSafe for IDLType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.