Function at_api_rs::types::gtfs::deserialize_bearing[][src]

pub fn deserialize_bearing<'de, D>(
    deserializer: D
) -> Result<Option<f32>, D::Error> where
    D: Deserializer<'de>, 
Expand description

Serialize, Deserializes a bearing which is sent in the realtime GTFS output from Auckland Transport. Requires a seperate deserialization function due to AT sending a float, integer, string or nothing for this field.