Enum move_idl_types::IDLType
source · [−]pub enum IDLType {
Bool,
U8,
U64,
U128,
Address,
Signer,
TypeParam(u16),
Tuple(Vec<IDLType>),
Vector(Box<IDLType>),
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>)
Vector(Box<IDLType>)
Struct(IDLStructType)
Trait Implementations
sourceimpl<'de> Deserialize<'de> for IDLType
impl<'de> Deserialize<'de> for IDLType
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::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
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<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