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

Returns the “default value” for a type. Read more

Retrieves a map of park names to the url of their rides page. Read more

Retrieves the queue times for all parsable rides on a park rides page. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.