gleam-spacetraders-sdk/src/models/scanned_ship_mount.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
318 B
Gleam

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