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
0: boolNull
Text(String)
Tuple Fields
0: StringNumber(String)
Tuple Fields
0: StringFloat64(f64)
Tuple Fields
0: f64Opt(Box<IDLValue>)
Vec(Vec<IDLValue>)
Record(Vec<IDLField>)
Variant(VariantValue)
Tuple Fields
0: VariantValuePrincipal(Principal)
Tuple Fields
0: PrincipalService(Principal)
Tuple Fields
0: PrincipalFunc(Principal, String)
None
Int(Int)
Tuple Fields
0: IntNat(Nat)
Tuple Fields
0: NatNat8(u8)
Tuple Fields
0: u8Nat16(u16)
Tuple Fields
0: u16Nat32(u32)
Tuple Fields
0: u32Nat64(u64)
Tuple Fields
0: u64Int8(i8)
Tuple Fields
0: i8Int16(i16)
Tuple Fields
0: i16Int32(i32)
Tuple Fields
0: i32Int64(i64)
Tuple Fields
0: i64Float32(f32)
Tuple Fields
0: f32Reserved
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
