pub struct ElementBase {
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>,
}Expand description
Common metadata shared by Node, Way and Relation.
See the module docs for the default values (visible = true,
version = changeset_id = -1, timestamp/user = None).
Fields§
§id: i64§version: i32§timestamp: Option<DateTime<Utc>>§user: Option<OsmUser>§changeset_id: i64§visible: boolImplementations§
Source§impl ElementBase
impl ElementBase
Creates base metadata for an element with only an id and tags (no version, timestamp or user information).
Trait Implementations§
Source§impl Debug for ElementBase
impl Debug for ElementBase
Source§impl Default for ElementBase
impl Default for ElementBase
Source§impl From<ElementBase> for Node
impl From<ElementBase> for Node
Source§fn from(el: ElementBase) -> Self
fn from(el: ElementBase) -> Self
Converts to this type from the input type.
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.
Source§impl From<ElementBase> for Relation
impl From<ElementBase> for Relation
Source§fn from(el: ElementBase) -> Self
fn from(el: ElementBase) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ElementBase
impl RefUnwindSafe for ElementBase
impl Send for ElementBase
impl Sync for ElementBase
impl Unpin for ElementBase
impl UnsafeUnpin for ElementBase
impl UnwindSafe for ElementBase
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> 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