Skip to main content
← Back to kicad-monkey Rust Docs kicad-monkey Rust Crate API Reference

Crate kicad_monkey_contracts

Crate kicad_monkey_contracts 

Source
Expand description

Generated transport types for KiCad Monkey operation boundaries.

Modules§

generated
TypeSpec-generated modules. Regenerate; do not edit module contents.

Structs§

FiniteFloat
Finite float64 value used by programmatically constructed text DTOs.
FiniteFloatError
FontBundleLimits
Caller-owned ceilings applied before hashing or retaining font metadata.
FontResolutionLimits
Caller-owned ceilings for one lookup against an already validated bundle.
JavaScriptSafeInteger
Integer guaranteed to remain exact across JSON and JavaScript/WASM boundaries.
JavaScriptSafeIntegerError
NonNegativeFiniteFloat
Finite nonnegative floating-point value used for governed comparison tolerances.
NonNegativeFiniteFloatError
PositiveU32
Strictly positive OpenType units-per-em transport value.
PositiveU32Error
SchematicDefaultLineWidthNm
Effective schematic default line width, already clamped for plotting.
SchematicDefaultLineWidthNmError
StableTextId
Nonempty stable ASCII identifier for font entries and oracle cases.
StableTextIdError
ValidatedBuildRequest
A semantically validated build request. KiCad builds S-expressions of any size, so the request carries no ceilings (#612).
ValidatedFontBundle
A manifest whose metadata, out-of-band buffers, and lookup indexes passed validation.
ValidationError
Stable semantic contract validation failure.

Enums§

CompiledGraphDecodeError
Failure from either strict JSON transport decoding or literal validation.
SourceBundleDecodeError
Structural JSON or strict-literal failure at the promoted boundary.
ValidatedNode
Validated, payload-exclusive generic node ready for conversion by adapters.

Constants§

JAVASCRIPT_SAFE_INTEGER_MAX
Largest integer represented exactly by JavaScript’s IEEE-754 number.
JAVASCRIPT_SAFE_INTEGER_MIN
Smallest integer represented exactly by JavaScript’s IEEE-754 number.
SCHEMATIC_DEFAULT_LINE_WIDTH_MIN_NM
KiCad’s effective minimum plot pen width, in nanometres.

Functions§

decode_compiled_schematic_graph_a0
Decode JSON and enforce every TypeSpec literal that Typify represents as a string.
decode_source_bundle_manifest_a0
Decode JSON and enforce literals that Typify represents as strings.
resolve_font_selection_contract
Resolve an explicit font ID or alias through a validated, bounded lookup index.
validate_board_plot_document
Enforce record counts and record-kind-specific operation states for boards.
validate_build_request
Enforce identity and the Node.kind payload union.
validate_compiled_schematic_graph_contract
Enforce the a0 envelope and row-family discriminators after structural decoding.
validate_font_bundle_contract
Validate one manifest against its complete out-of-band font buffer array.
validate_footprint_plot_document
Enforce the cross-field semantics of shared graphical and drill operations.
validate_outline_vector_contract
Enforce exact outline metadata and coordinate-only comparison semantics.
validate_schematic_plot_document
Enforce document identity, record order, operation shape, and local indexes.
validate_shaping_record_contract
Enforce exact shaping identity and the shared UTF-8 byte-offset index contract.
validate_source_bundle_manifest_contract
Enforce the a0 envelope before semantic path/slot validation in core.
validate_symbol_plot_document
Enforce identity, record counts, indices, and producer-specific symbol states.