vigoo/openapi_client_runtime/json does not have a README file

    DateTime

    pub struct DateTime {
    // private fields
    }

    RFC 3339 UTC timestamp wrapper over @time.ZonedDateTime implementing Eq, Compare, Debug, FromJson, and ToJson.

    Equality and ordering compare the underlying UTC instant (to_unix_second(), nanosecond()).
    impl Compare for DateTime
    impl Eq for DateTime

    DateTime::day

    fn DateTime::day(self : DateTime) -> Int

    UTC day of month (1..=31).

    DateTime::from_rfc3339

    Parse an RFC 3339 date-time string into a DateTime.

    DateTime::hour

    fn DateTime::hour(self : DateTime) -> Int

    UTC hour (0..=23).

    DateTime::inner

    Access the underlying @time.ZonedDateTime.

    DateTime::minute

    fn DateTime::minute(self : DateTime) -> Int

    UTC minute (0..=59).

    DateTime::month

    fn DateTime::month(self : DateTime) -> Int

    UTC calendar month (1..=12).

    DateTime::nanosecond

    fn DateTime::nanosecond(self : DateTime) -> Int

    Sub-second nanoseconds (0..=999_999_999).

    DateTime::new

    Wrap a @time.ZonedDateTime, normalizing it to UTC so component accessors (year, month, day, hour, minute, second) are always consistent with UTC-instant Eq, Compare, and to_rfc3339.

    DateTime::second

    fn DateTime::second(self : DateTime) -> Int

    UTC second (0..=59).

    DateTime::to_json

    DateTime::to_rfc3339

    fn DateTime::to_rfc3339(self : DateTime) -> String

    Format as a canonical UTC RFC 3339 string.

    DateTime::to_unix_second

    fn DateTime::to_unix_second(self : DateTime) -> Int64

    Unix timestamp in whole seconds since 1970-01-01T00:00:00Z.

    DateTime::year

    fn DateTime::year(self : DateTime) -> Int

    UTC calendar year.

    JsonReader

    pub struct JsonReader {
    // private fields
    }

    A positioned view over one JSON value with its structured DecodeContext.

    JsonReader::error

    Build a @cjson.JsonDecodeError anchored at this reader's current path.

    JsonReader::field

    Reader for a required object field (raises at /…/<name> if missing).

    JsonReader::is_null

    fn JsonReader::is_null(self : JsonReader) -> Bool

    JsonReader::new

    Wrap a JSON value with the DecodeContext passed into FromJson::from_json.

    JsonReader::opt_field

    Reader for an optional object field (None when absent; raises if self is not a JSON object).

    JsonReader::opt_field_as

    Decode an optional (or optional-nullable) field: absent OR null yields None; otherwise Some(decode(r)).

    JsonReader::path

    fn JsonReader::path(self : JsonReader) -> String

    Current RFC 6901 JSON Pointer path (e.g. "/items/0/id").

    JsonReader::read_array

    Array view: one path-tracked reader per element.

    JsonReader::read_base64

    Bytes decoded from standard base64 text (RFC 4648).

    JsonReader::read_bool

    JsonReader::read_byte

    JsonReader::read_char

    Char from a single-character JSON string.

    JsonReader::read_datetime

    RFC 3339 date-time parsed into a UTC @time.ZonedDateTime.

    JsonReader::read_double

    Double from a finite JSON number.

    JsonReader::read_int16

    JsonReader::read_int32

    JsonReader::read_int64

    Int64 from a JSON number (using preserved repr). Supports full signed 64-bit range including Int64::MIN (-9223372036854775808).

    JsonReader::read_map

    Decode a JSON object into a typed Map[String, T].

    JsonReader::read_map_excluding

    fn[T] JsonReader::read_map_excluding(self : JsonReader, skip_key : String, decode : (JsonReader) -> T raise
    JsonDecodeError
    ) -> Map[String, T] raise
    JsonDecodeError

    Decode a JSON object into a typed Map[String, T], skipping skip_key (used for TaggedEnum variants whose payload is a Map[String, T] sharing the same JSON object as the discriminator tag property).

    JsonReader::read_null

    JsonReader::read_object

    Object entries as (key, JsonReader) pairs.

    JsonReader::read_string

    JsonReader::read_uint16

    JsonReader::read_uint32

    JsonReader::read_uint64

    UInt64 from a JSON number (using preserved repr). Supports full 0..=18446744073709551615 without double precision loss.

    JsonReader::req_field

    Decode a required non-null field.

    JsonReader::req_nullable_field

    Decode a required-nullable field: key MUST be present; null yields None.

    JsonReader::root

    Wrap a root JSON value without an existing DecodeContext.

    ObjectBuilder

    pub struct ObjectBuilder {
    // private fields
    }

    Builder for JSON objects in generated ToJson impls.

    ObjectBuilder::build

    Finalize and return the built JSON object.

    ObjectBuilder::field

    fn ObjectBuilder::field(self : ObjectBuilder, wire : String, value :
    Json
    ) -> ObjectBuilder

    Add a required field unconditionally.

    ObjectBuilder::merge_object

    fn ObjectBuilder::merge_object(self : ObjectBuilder, other :
    Json
    , overwrite? : Bool) -> ObjectBuilder

    Merge all fields of another JSON object into this builder (used by internally-tagged flattened union encoders so tag + payload share one object). Existing keys (e.g. a discriminator tag written first or last) are overwritten only if overwrite is true (default false, preserving the tag).

    ObjectBuilder::new

    Create an empty ObjectBuilder.

    ObjectBuilder::nullable_field

    fn ObjectBuilder::nullable_field(self : ObjectBuilder, wire : String, value :
    Json
    ?) -> ObjectBuilder

    Add a required-nullable field: None is encoded as JSON null.

    ObjectBuilder::opt_field

    fn ObjectBuilder::opt_field(self : ObjectBuilder, wire : String, value :
    Json
    ?) -> ObjectBuilder

    Add an optional field: None is omitted on the wire.

    base64_decode

    Strict RFC 4648 standard base64 decode (rejects malformed characters and bad padding).

    base64_encode

    fn base64_encode(bytes : Bytes) -> String

    Standard RFC 4648 base64 encode (with = padding).

    parse_int64_text

    fn parse_int64_text(text : String) -> Int64?

    Overflow-checked signed 64-bit decimal parser supporting the full range [-9223372036854775808, 9223372036854775807] via moonbitlang/core/string.

    parse_json

    Parse JSON text with preserve_number_repr=true so 64-bit integers never lose precision to IEEE-754 doubles.

    parse_uint64_text

    fn parse_uint64_text(text : String) -> UInt64?

    Overflow-checked unsigned 64-bit decimal parser (0..=18446744073709551615) via moonbitlang/core/string.

    rfc3339_format_utc

    fn rfc3339_format_utc(dt :
    ZonedDateTime
    ) -> String

    Format a @time.ZonedDateTime as a canonical UTC RFC 3339 string (YYYY-MM-DDTHH:MM:SSZ or YYYY-MM-DDTHH:MM:SS.<trimmed-frac>Z).

    rfc3339_parse

    Parse an RFC 3339 date-time string into a UTC @time.ZonedDateTime.

    write_base64

    fn write_base64(bytes : Bytes) ->
    Json

    Encode raw bytes as a standard RFC 4648 base64 JSON string.

    write_bool

    fn write_bool(value : Bool) ->
    Json

    Encode a boolean as a JSON boolean.

    write_byte

    fn write_byte(value : Byte) ->
    Json

    Encode an unsigned byte (0..=255) as a JSON number.

    write_char

    fn write_char(value : Char) ->
    Json

    Encode a single Unicode scalar Char as a one-character JSON string.

    write_datetime

    Encode a @time.ZonedDateTime as a canonical UTC RFC 3339 JSON string.

    write_double

    fn write_double(value : Double) ->
    Json

    Encode a Double as a JSON number; non-finite values (NaN, ±Infinity) are encoded as null to guarantee valid RFC 8259 JSON.

    write_int16

    fn write_int16(value : Int16) ->
    Json

    Encode a 16-bit signed integer as a JSON number.

    write_int32

    fn write_int32(value : Int) ->
    Json

    Encode a 32-bit signed integer as a JSON number.

    write_int64

    fn write_int64(value : Int64) ->
    Json

    Encode a lossless 64-bit signed integer JSON number (preserving exact wire digits).

    write_string

    fn write_string(value : String) ->
    Json

    Encode a string as a JSON string.

    write_uint16

    fn write_uint16(value : UInt16) ->
    Json

    Encode a 16-bit unsigned integer as a JSON number.

    write_uint32

    fn write_uint32(value : UInt) ->
    Json

    Encode a 32-bit unsigned integer as a JSON number.

    write_uint64

    fn write_uint64(value : UInt64) ->
    Json

    Encode a lossless 64-bit unsigned integer JSON number (preserving exact wire digits).