pub struct SourceConfig {
pub planet_http_url: String,
pub geofabrik_base_url: String,
}Expand description
Advanced API: Create a downloader with custom configuration
For advanced users who need to customize source URLs, S3 buckets, etc.
§Examples
use butterfly_dl::{Downloader, SourceConfig};
let config = SourceConfig {
planet_http_url: "https://my-custom-mirror.org/planet.pbf".to_string(),
..Default::default()
};
let downloader = Downloader::with_config(config);
// Use downloader methods...Configuration for download sources
Fields§
§planet_http_url: StringHTTP URL for planet files
geofabrik_base_url: StringBase URL for Geofabrik downloads
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SourceConfig
impl RefUnwindSafe for SourceConfig
impl Send for SourceConfig
impl Sync for SourceConfig
impl Unpin for SourceConfig
impl UnwindSafe for SourceConfig
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