pub struct Way {
pub id: i64,
pub version: i32,
pub timestamp: Option<DateTime<Utc>>,
pub user: Option<OsmUser>,
pub changeset_id: i64,
pub visible: bool,
pub tags: Vec<Tag>,
pub way_nodes: Vec<WayNode>,
}Expand description
An OSM way: an ordered list of node references (WayNodes).
Fields§
§id: i64§version: i32§timestamp: Option<DateTime<Utc>>§user: Option<OsmUser>§changeset_id: i64§visible: boolfalse marks a deleted/historical object; defaults to true (see module docs).
way_nodes: Vec<WayNode>The way’s nodes in order. Coordinates are present only when the file declares the
LocationsOnWays feature.
Trait Implementations§
Source§impl BasicElement for Way
impl BasicElement for Way
Source§impl<'de> Deserialize<'de> for Way
impl<'de> Deserialize<'de> for Way
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Way
Source§impl From<ElementBase> for Way
impl From<ElementBase> for Way
Source§fn from(el: ElementBase) -> Self
fn from(el: ElementBase) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for Way
Auto Trait Implementations§
impl Freeze for Way
impl RefUnwindSafe for Way
impl Send for Way
impl Sync for Way
impl Unpin for Way
impl UnsafeUnpin for Way
impl UnwindSafe for Way
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more