pub enum Type {
String,
Bool,
Enum,
List,
Uint,
Int,
Float,
Path,
}Expand description
The coarse wire kind a variable exposes in the contract.
This is the portable label other languages see; the Rust type parameter on
crate::Input is the real enforcement.
Variants§
String
Opaque text with no further structure.
Bool
A two-state toggle (1/0, true/false, on/off).
Enum
Exactly one token from allowed.
List
A separated list of tokens from allowed.
Uint
A non-negative integer.
Int
A signed integer.
Float
A floating-point number.
Path
A filesystem path.
Implementations§
Trait Implementations§
impl Copy for Type
impl Eq for Type
impl StructuralPartialEq for Type
Auto Trait Implementations§
impl Forget for Type
impl Freeze for Type
impl Move for Type
impl RefUnwindSafe for Type
impl Send for Type
impl Sync for Type
impl Unpin for Type
impl UnsafeUnpin for Type
impl UnwindSafe for Type
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more