pub struct OSMHeader {
pub bbox: BBox,
pub required_features: Vec<String>,
pub optional_features: Vec<String>,
pub writingprogram: Option<String>,
pub source: Option<String>,
pub osmosis_replication_timestamp: i64,
pub osmosis_replication_sequence_number: i64,
pub osmosis_replication_base_url: Option<String>,
}Expand description
OSM Header Block
Fields§
§bbox: BBoxThe bounding box field in the OSM header
required_features: Vec<String>The required features field in the OSM header
optional_features: Vec<String>The optional features field in the OSM header
writingprogram: Option<String>The writingprogram field in the OSM header
source: Option<String>The source field in the OSM header
osmosis_replication_timestamp: i64Tags that allow continuing an Osmosis replication Replication timestamp, expressed in seconds since the epoch, otherwise the same value as in the “timestamp=…” field in the state.txt file used by Osmosis.
osmosis_replication_sequence_number: i64Replication sequence number (sequenceNumber in state.txt).
osmosis_replication_base_url: Option<String>Replication base URL (from Osmosis’ configuration.txt file).
Trait Implementations§
Source§impl From<&HeaderBlock> for OSMHeader
impl From<&HeaderBlock> for OSMHeader
Source§fn from(block: &HeaderBlock) -> Self
fn from(block: &HeaderBlock) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for OSMHeader
Auto Trait Implementations§
impl Freeze for OSMHeader
impl RefUnwindSafe for OSMHeader
impl Send for OSMHeader
impl Sync for OSMHeader
impl Unpin for OSMHeader
impl UnwindSafe for OSMHeader
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§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> 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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().