Struct queue_times::client::Client [−][src]
pub struct Client { /* fields omitted */ }
Expand description
Provides a queue times client that uses the generic parser without caching.
use queue_times::client::{Client, QueueTimesClient}; let mut client = Client::new(); let parks = client.get_park_urls().await?; let cedar_point_waits = client.get_ride_times(parks.get("Cedar Point")?.to_owned()).await?; let mille_wait = cedar_point_waits.iter().find(|r| r.name == "Millennium Force").unwrap(); println!("The current wait for Millennium Force is: {:?}", mille_wait.status)
Implementations
Trait Implementations
Retrieves a map of park names to the url of their rides page. Read more
Auto Trait Implementations
impl !RefUnwindSafe for Client
impl !UnwindSafe for Client