Enum candid::parser::value::IDLValue [−][src]
pub enum IDLValue {
Show 25 variants
Bool(bool),
Null,
Text(String),
Number(String),
Float64(f64),
Opt(Box<IDLValue>),
Vec(Vec<IDLValue>),
Record(Vec<IDLField>),
Variant(VariantValue),
Principal(Principal),
Service(Principal),
Func(Principal, String),
None,
Int(Int),
Nat(Nat),
Nat8(u8),
Nat16(u16),
Nat32(u32),
Nat64(u64),
Int8(i8),
Int16(i16),
Int32(i32),
Int64(i64),
Float32(f32),
Reserved,
}
Variants
Bool(bool)
Tuple Fields of Bool
0: bool
Text(String)
Tuple Fields of Text
0: String
Number(String)
Tuple Fields of Number
0: String
Float64(f64)
Tuple Fields of Float64
0: f64
Variant(VariantValue)
Tuple Fields of Variant
0: VariantValue
Principal(Principal)
Tuple Fields of Principal
0: Principal
Service(Principal)
Tuple Fields of Service
0: Principal
Int(Int)
Tuple Fields of Int
0: Int
Nat(Nat)
Tuple Fields of Nat
0: Nat
Nat8(u8)
Tuple Fields of Nat8
0: u8
Nat16(u16)
Tuple Fields of Nat16
0: u16
Nat32(u32)
Tuple Fields of Nat32
0: u32
Nat64(u64)
Tuple Fields of Nat64
0: u64
Int8(i8)
Tuple Fields of Int8
0: i8
Int16(i16)
Tuple Fields of Int16
0: i16
Int32(i32)
Tuple Fields of Int32
0: i32
Int64(i64)
Tuple Fields of Int64
0: i64
Float32(f32)
Tuple Fields of Float32
0: f32
Implementations
Anotate IDLValue
with the given type, allowing subtyping. If IDLValue
is parsed from
string, we need to set from_parser
to true to enable converting numbers to the expected
types, and disable the opt rules.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for IDLValue
impl UnwindSafe for IDLValue
Blanket Implementations
Mutably borrows from an owned value. Read more