Skip to main content

Crate pleiades_types

Crate pleiades_types 

Source
Expand description

Shared primitive and domain-adjacent types used across the workspace.

These types define the vocabulary for angles, time scales, celestial body identifiers, observer locations, coordinate frames, and catalog selections. Higher-level crates build on these semantics without re-labelling the same concepts in backend-specific ways.

Enable the optional serde feature to serialize and deserialize the public type vocabulary for interchange or caching workflows.

§Examples

use pleiades_types::{Angle, Longitude};

let angle = Angle::from_degrees(-30.0);
assert_eq!(angle.normalized_0_360().degrees(), 330.0);

let lon = Longitude::from_degrees(390.0);
assert_eq!(lon.degrees(), 30.0);

Structs§

Angle
An angular quantity measured in degrees.
CustomAyanamsa
A structured custom ayanamsa definition.
CustomBodyId
A structured identifier for a custom body.
CustomHouseSystem
A structured custom house-system definition.
EclipticCoordinates
Ecliptic position data.
EquatorialCoordinates
Equatorial position data.
Instant
A Julian day tagged with a time scale.
JulianDay
A Julian day expressed as a floating-point day count.
Latitude
A signed latitude-like angle measured in degrees, north-positive.
Longitude
A canonical ecliptic or longitude-like angle normalized into [0, 360).
Motion
Apparent motion data for a position sample.
ObserverLocation
A geographic observer location.
TimeRange
A Julian-day interval.
TimeScaleConversion
A caller-supplied time-scale conversion policy.

Enums§

Apparentness
Whether a backend should prefer apparent or mean values where both exist.
Ayanamsa
A built-in or custom ayanamsa selection.
CelestialBody
The built-in and custom body identifiers recognized by the shared API.
CelestialBodyClass
A coarse classification for a celestial body.
CompatibilityClaimTier
The compatibility claim a catalog makes for one built-in entry.
CoordinateFrame
The coordinate frame requested from a backend.
CoordinateValidationError
Validation errors for shared coordinate samples.
CustomDefinitionValidationError
Validation failure for a custom body, house system, or ayanamsa definition.
HouseSystem
A built-in or custom house system selection.
MotionDirection
The coarse direction of longitudinal motion.
MotionValidationError
Errors returned when motion samples contain non-finite values.
ObserverLocationValidationError
Validation errors for observer locations.
SiderealStarPlace
Which place of a sidereal ayanamsa’s anchor star the ayanamsa is read from (issue #164 (c)).
TimeRangeValidationError
Shared validation errors for TimeRange.
TimeScale
A supported astronomical time scale.
TimeScaleConversionError
Error returned when a caller-provided time-scale conversion fails.
ZodiacMode
Whether coordinates should be interpreted in tropical or sidereal mode.
ZodiacSign
One of the twelve zodiac signs.

Constants§

OBLIQUITY_J2000_DEG
J2000.0 mean obliquity of the ecliptic, degrees (IAU 1976 constant term). Single source of truth shared by the SPK ICRF→ecliptic reduction (pleiades-jpl), the J2000→date precession (pleiades-apparent), and the constant term of Instant::mean_obliquity.
SECONDS_PER_DAY
Number of SI seconds in one Julian day.