pub type Uint32 = JsonUint<u32>;
Expand description
The 32-bit unsigned integer type encoded as the 0x-prefixed hex string in JSON.
§Examples
JSON | Decimal Value |
---|---|
“0x0” | 0 |
“0x10” | 16 |
“10” | Invalid, 0x is required |
“0x01” | Invalid, redundant leading 0 |
Aliased Type§
struct Uint32(/* private fields */);
Trait Implementations§
Source§impl JsonSchema for Uint32
impl JsonSchema for Uint32
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn 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