pub struct DbState {
pub id: i64,
pub rev: i64,
pub url: Option<String>,
pub sequence: i64,
pub timestamp: Option<Timestamp>,
pub geometry: GeometryFormat,
}Expand description
Where the database is in its replication stream, from osm.state.
Fields§
§id: i64A random number made by the import, which the node file and the reverse index carry too.
rev: i64The last revision: 1 after the import, one more after each update batch.
url: Option<String>The replication stream’s base URL, if known.
sequence: i64The last sequence of the stream applied.
timestamp: Option<Timestamp>The time of that sequence’s state.
geometry: GeometryFormatHow osm.nodes and osm.ways store their geometries.
Trait Implementations§
impl Eq for DbState
impl StructuralPartialEq for DbState
Auto Trait Implementations§
impl Forget for DbState
impl Freeze for DbState
impl Move for DbState
impl RefUnwindSafe for DbState
impl Send for DbState
impl Sync for DbState
impl Unpin for DbState
impl UnsafeUnpin for DbState
impl UnwindSafe for DbState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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