pub struct ClientConfig {
pub status_url: String,
pub datafeed_url_override: Option<String>,
pub slurper_url_override: Option<String>,
pub cache_ttl_secs: u64,
}Available on crate feature
client only.Expand description
Configuration for a VatsimClient.
Fields§
§status_url: StringURL of the VATSIM status endpoint used to discover data feed mirror URLs.
datafeed_url_override: Option<String>If set, bypasses status URL discovery and fetches the data feed from this URL directly.
slurper_url_override: Option<String>If set, uses this URL for slurper requests instead of the default.
cache_ttl_secs: u64How many seconds a cached datafeed response is considered fresh.
Trait Implementations§
Source§impl Clone for ClientConfig
impl Clone for ClientConfig
Source§impl Debug for ClientConfig
impl Debug for ClientConfig
Auto Trait Implementations§
impl Freeze for ClientConfig
impl RefUnwindSafe for ClientConfig
impl Send for ClientConfig
impl Sync for ClientConfig
impl Unpin for ClientConfig
impl UnsafeUnpin for ClientConfig
impl UnwindSafe for ClientConfig
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