Skip to main content

Module solve_json

Module solve_json 

Source
Expand description

Versioned, binding-neutral JSON data-transfer objects for trajectory solves.

These types deliberately do not expose crate::BallisticInputs. The public JSON contract has its own names, units, defaults, and compatibility policy so engine internals can evolve without silently changing requests produced by language bindings.

Structs§

AtmosphereV1
Atmospheric station conditions.
EffectsV1
Optional physical effects supported by solve-json v1.
ProjectileV1
Projectile inputs supported by solve-json v1.
ResolvedAtmosphereV1
Resolved station conditions.
ResolvedConstantWindV1
Resolved still-air or constant-wind values.
ResolvedEffectsV1
Resolved physical-effect switches.
ResolvedProjectileV1
Resolved projectile inputs.
ResolvedRifleV1
Resolved rifle and sight geometry.
ResolvedSamplingV1
Resolved result-sampling configuration.
ResolvedSegmentedWindV1
Resolved downrange wind segments.
ResolvedShotV1
Resolved shot geometry.
ResolvedSolveRequestV1
A solve request after the service has applied every documented v1 default.
ResolvedSolverV1
Resolved numerical integration configuration.
ResolvedWindSegmentV1
One resolved wind segment.
RifleV1
Rifle and sight geometry.
SamplingV1
Regular downrange output sampling configuration.
SchemaVersionV1
An invariant solve-json v1 schema discriminator.
ShotV1
Shot geometry and termination range.
SolveErrorEnvelopeV1
A failed solve-json v1 response.
SolveErrorV1
A stable, machine-readable protocol error.
SolveNoticeV1
A machine-readable assumption or warning.
SolveRequestV1
A complete v1 trajectory-solve request.
SolveSuccessV1
A successful solve-json v1 response.
SolveSummaryV1
Aggregate observations for a completed solve.
SolverV1
Numerical integration configuration.
TrajectorySampleV1
One regularly sampled trajectory observation.
WindSegmentV1
One wind segment, active through until_distance_m.
WindV1
Constant or downrange-segmented wind.

Enums§

DragModelV1
Built-in reference-projectile drag models supported by solve-json v1.
ErrorStatusV1
The error discriminator serialized in a response envelope.
ResolvedWindV1
Resolved constant or segmented wind.
SampleFlagV1
Stable annotations for trajectory samples.
SolveErrorCodeV1
Stable solve-json v1 error categories.
SolveErrorLocationErrorV1
Why a source location could not be attached to a protocol error.
SolverMethodV1
Integration algorithms exposed by solve-json v1.
SuccessStatusV1
The success discriminator serialized in a response envelope.
TerminationReasonV1
Why the trajectory ended.
TwistDirectionV1
Direction of rifling twist as viewed from the breech toward the muzzle.

Constants§

MAX_SOLVE_JSON_SAMPLES_V1
Maximum number of trajectory observations in one solve-json v1 success response.
SOLVE_JSON_SCHEMA_VERSION_V1
The only solve-json schema version understood by this module.

Functions§

decode_solve_request_v1
Decode and structurally validate one solve-json v1 request.