pub struct Ghost {
pub format: String,
pub version: u32,
pub frame: String,
pub pad: Pad,
pub tracks: Vec<Track>,
}Expand description
A flight’s ghost: its logs’ trajectories on one clock in one frame, as the JSON writes it.
Fields§
§format: Stringhpr-ghost.
version: u32The format’s version.
frame: StringThe frame in words: east, north and up from the pad, in meters.
pad: PadThe pad.
tracks: Vec<Track>Each log’s trajectory.
Implementations§
Source§impl Ghost
impl Ghost
Sourcepub fn to_czml(&self) -> Result<String, GhostError>
pub fn to_czml(&self) -> Result<String, GhostError>
The ghost as a CZML document: a position for each track on CZML_EPOCH, Earth-fixed.
§Errors
When the ghost holds what no file can draw, as JSON from elsewhere can.
Sourcepub fn to_gltf(&self) -> Result<String, GhostError>
pub fn to_gltf(&self) -> Result<String, GhostError>
The ghost as one glTF 2.0 file, its buffer inside as base64: for each track, a line of its whole path and a small marker that moves along it. +x is east, +y up, −z north, in meters, as glTF’s axes run.
§Errors
As Ghost::to_czml.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Ghost
impl<'de> Deserialize<'de> for Ghost
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for Ghost
impl JsonSchema for Ghost
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for Ghost
Auto Trait Implementations§
impl Freeze for Ghost
impl RefUnwindSafe for Ghost
impl Send for Ghost
impl Sync for Ghost
impl Unpin for Ghost
impl UnsafeUnpin for Ghost
impl UnwindSafe for Ghost
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more