Struct osmpbfreader::objects::Relation
source · pub struct Relation {
pub id: RelationId,
pub tags: Tags,
pub refs: Vec<Ref>,
}
Expand description
An OpenStreetMap relation. See the OpenStreetMap wiki page about relation for more information.
Fields§
§id: RelationId
The id of the relation.
The tags of the relation.
refs: Vec<Ref>
Members of the relation.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Relation
impl<'de> Deserialize<'de> for Relation
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
source§impl Ord for Relation
impl Ord for Relation
source§impl PartialEq for Relation
impl PartialEq for Relation
source§impl PartialOrd for Relation
impl PartialOrd for Relation
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for Relation
impl StructuralEq for Relation
impl StructuralPartialEq for Relation
Auto Trait Implementations§
impl RefUnwindSafe for Relation
impl Send for Relation
impl Sync for Relation
impl Unpin for Relation
impl UnwindSafe for Relation
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