gleam-spacetraders-sdk/src/models/waypoint_orbital.gleam
Lily Rose cc8edbed02
Some checks are pending
test / test (push) Waiting to run
Add functioning sdk
2025-06-17 01:43:06 +10:00

11 lines
326 B
Gleam

import gleam/dynamic/decode.{type Decoder}
import models/waypoint_symbol.{type WaypointSymbol}
pub type WaypointOrbital {
WaypointOrbital(symbol: WaypointSymbol)
}
pub fn decoder() -> Decoder(WaypointOrbital) {
use symbol <- decode.field("symbol", waypoint_symbol.decoder())
decode.success(WaypointOrbital(symbol:))
}