[][src]Struct nmea_parser::VesselStaticData

pub struct VesselStaticData {
    pub own_vessel: bool,
    pub ais_type: AisType,
    pub mmsi: u32,
    pub ais_version_indicator: u8,
    pub imo_number: Option<u32>,
    pub call_sign: Option<String>,
    pub name: Option<String>,
    pub ship_type: ShipType,
    pub cargo_type: CargoType,
    pub equipment_vendor_id: Option<String>,
    pub equipment_model: Option<u8>,
    pub equipment_serial_number: Option<u32>,
    pub dimension_to_bow: Option<u16>,
    pub dimension_to_stern: Option<u16>,
    pub dimension_to_port: Option<u16>,
    pub dimension_to_starboard: Option<u16>,
    pub position_fix_type: Option<PositionFixType>,
    pub eta: Option<DateTime<Utc>>,
    pub draught10: Option<u8>,
    pub destination: Option<String>,
    pub mothership_mmsi: Option<u32>,
}

AIVDM type 5 and 24

Fields

own_vessel: bool

True if the data is about own vessel, false if about other vessel.

ais_type: AisType

Class A or Class B

mmsi: u32

User ID (30 bits)

ais_version_indicator: u8

AIS version indicator (2 bits)

imo_number: Option<u32>

IMO number (1-999999999; 30 bits).

call_sign: Option<String>

Call sign (42 bits)

name: Option<String>

Name (20 ASCII characters)

ship_type: ShipType

Type of ship (first 4 of 8 bits)

cargo_type: CargoType

Type of ship and cargo (last 4 of 8 bits)

equipment_vendor_id: Option<String>

Class B Vendor ID

equipment_model: Option<u8>

Class B unite model code

equipment_serial_number: Option<u32>

Class B serial number

dimension_to_bow: Option<u16>

Overall dimension / reference for position A (9 bits)

dimension_to_stern: Option<u16>

Overall dimension / reference for position B (9 bits)

dimension_to_port: Option<u16>

Overall dimension / reference for position C (6 bits)

dimension_to_starboard: Option<u16>

Overall dimension / reference for position C (6 bits)

position_fix_type: Option<PositionFixType>eta: Option<DateTime<Utc>>

ETA (20 bits)

draught10: Option<u8>

Maximum present static draught in decimetres (1-255; 8 bits)

destination: Option<String>

Destination (120 ASCII characters)

mothership_mmsi: Option<u32>

Class B mothership MMSI

Implementations

impl VesselStaticData[src]

pub fn country(&self) -> Option<&'static str>[src]

Derive ISO 3166 country code from MID part of MMSI.

Trait Implementations

impl Clone for VesselStaticData[src]

impl Debug for VesselStaticData[src]

impl Default for VesselStaticData[src]

impl PartialEq<VesselStaticData> for VesselStaticData[src]

impl StructuralPartialEq for VesselStaticData[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Conv for T

impl<T> Conv for T

impl<T> FmtForward for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pipe for T where
    T: ?Sized

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<T> Tap for T

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> TryConv for T

impl<T> TryConv for T

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.