google_maps 3.9.5

An unofficial Google Maps Platform client library for the Rust programming language.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! A representation of distance as a numeric value and a display string.

use serde::{Deserialize, Serialize};

// -----------------------------------------------------------------------------
//
/// A representation of distance as a numeric value and a display string.

#[derive(Clone, Debug, Eq, Hash, Ord, PartialEq, PartialOrd, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct DirectionsDistance {
    /// A string representation of the distance value, using the
    /// `with_unit_system()` specified in the request.
    pub text: String,

    /// Indicates the distance in meters.
    pub value: u32,
} // struct