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 JsonSchema for IDLType
impl JsonSchema for IDLType
sourcefn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
sourcefn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
sourcefn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the $ref
keyword. 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.
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more