pub struct Config<'a> {
pub bounding_box: BoundingBox,
pub fetch_rate: u8,
pub output_folder: &'a Path,
pub request_retries_amount: u8,
pub url: &'a str,
pub timeout: Duration,
pub zoom_level: u8,
}
Expand description
Tile fetching configuration.
Fields§
§bounding_box: BoundingBox
Bounding box in top, right, bottom, left order.
fetch_rate: u8
Maximum number of parallel downloads.
output_folder: &'a Path
The folder to output the data to.
request_retries_amount: u8
How many times to retry a failed HTTP request.
url: &'a str
The URL to download individual tiles from including the replacement
specifiers {x}
, {y}
and {z}
.
timeout: Duration
Timeout for fetching a single tile.
Pass the zero duration to disable the timeout.
zoom_level: u8
The zoom level to download to.
Implementations§
Trait Implementations§
impl<'a> Copy for Config<'a>
impl<'a> StructuralPartialEq for Config<'a>
Auto Trait Implementations§
impl<'a> Freeze for Config<'a>
impl<'a> RefUnwindSafe for Config<'a>
impl<'a> Send for Config<'a>
impl<'a> Sync for Config<'a>
impl<'a> Unpin for Config<'a>
impl<'a> UnwindSafe for Config<'a>
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