pub struct ImportOpts {
pub replace: bool,
pub replication_url: Option<String>,
pub sequence: Option<u64>,
pub connections: usize,
}Expand description
How to import.
Fields§
§replace: boolDrop an existing osm schema first; without it, one is an error.
replication_url: Option<String>The URL of the replication stream that continues the file, kept for updates, instead of the one its header names.
sequence: Option<u64>The stream’s sequence the file is up to, instead of the one its header gives. Without either, it is found from the file’s timestamp in the stream, as for a planet file.
connections: usizeThe database connections rows are copied on, at once.
Trait Implementations§
Source§impl Clone for ImportOpts
impl Clone for ImportOpts
Source§impl Debug for ImportOpts
impl Debug for ImportOpts
Auto Trait Implementations§
impl Forget for ImportOpts
impl Freeze for ImportOpts
impl RefUnwindSafe for ImportOpts
impl Send for ImportOpts
impl Sync for ImportOpts
impl Unpin for ImportOpts
impl UnsafeUnpin for ImportOpts
impl UnwindSafe for ImportOpts
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