Sign in

    yugonlian/moon-avro/json does not have a README file

    JsonError

    pub(all) suberror JsonError {
    TypeMismatch(expected~ : String, actual~ : String)
    InvalidNumber(expected~ : String, value~ : Double)
    InvalidEnum(symbol~ : String)
    InvalidUnion(message~ : String)
    InvalidFixed(expected~ : Int, actual~ : Int)
    InvalidByteString(message~ : String)
    MissingField(field~ : String)
    UnexpectedField(field~ : String)
    LimitExceeded(limit~ : String)
    UnresolvedName(String)
    InvalidJson(String)
    } derive(Eq,
    Debug
    )

    Errors reported by schema-driven Avro JSON conversion.

    JsonLimits

    pub struct JsonLimits {
    max_depth : Int
    max_collection_items : Int
    max_string_bytes : Int
    } derive(Eq,
    Debug
    )

    Bounds used while converting untrusted JSON values to or from Avro data.

    JsonLimits::max_collection_items

    fn JsonLimits::max_collection_items(self : JsonLimits) -> Int

    JsonLimits::max_depth

    fn JsonLimits::max_depth(self : JsonLimits) -> Int

    JsonLimits::max_string_bytes

    fn JsonLimits::max_string_bytes(self : JsonLimits) -> Int

    JsonLimits::new

    fn JsonLimits::new(max_depth? : Int, max_collection_items? : Int, max_string_bytes? : Int) -> JsonLimits

    from_json

    Convert a JSON value to an Avro datum using the supplied schema.

    parse

    Parse JSON text and convert it to an Avro datum using the supplied schema.

    stringify

    Convert an Avro datum to compact JSON text according to its schema.

    to_json

    Convert an Avro datum to its schema-defined JSON value.

    Source Files

    Powered by MoonBit

    Site sourceReport issuePackagesBuild queueSkillsStatistics

    © 2026 mooncakes.io