pub struct Crowd;
Expand description
Crowd type that implements APIs. Can be either blocking or async
Trait Implementations§
source§impl CrowdRequests<LTAClient<Agent>> for Crowd
impl CrowdRequests<LTAClient<Agent>> for Crowd
source§fn get_passenger_vol_by(
client: <AClient<Agent>,
vol_type: VolType,
date: impl Into<Option<Date>>,
skip: impl Into<Option<u32>>
) -> LTAResult<Vec<String>>
fn get_passenger_vol_by( client: <AClient<Agent>, vol_type: VolType, date: impl Into<Option<Date>>, skip: impl Into<Option<u32>> ) -> LTAResult<Vec<String>>
Creates a new client for every call
Update freq: By 15th of every month, the passenger volume for previous month data
will be generated Read more
source§impl CrowdRequests<LTAClient<Client>> for Crowd
impl CrowdRequests<LTAClient<Client>> for Crowd
source§fn get_passenger_vol_by(
client: <AClient<ReqwestBlocking>,
vol_type: VolType,
date: impl Into<Option<Date>>,
skip: impl Into<Option<u32>>
) -> LTAResult<Vec<String>>
fn get_passenger_vol_by( client: <AClient<ReqwestBlocking>, vol_type: VolType, date: impl Into<Option<Date>>, skip: impl Into<Option<u32>> ) -> LTAResult<Vec<String>>
Creates a new client for every call
Update freq: By 15th of every month, the passenger volume for previous month data
will be generated Read more
source§fn get_crowd_density_rt(
client: <AClient<ReqwestBlocking>,
train_line: MrtLine
) -> LTAResult<Vec<StationCrowdLevel>>
fn get_crowd_density_rt( client: <AClient<ReqwestBlocking>, train_line: MrtLine ) -> LTAResult<Vec<StationCrowdLevel>>
Returns real-time platform crowdedness level for the MRT/LRT stations of a
particular train network line Read more
source§fn get_crowd_density_forecast(
client: <AClient<ReqwestBlocking>,
train_line: MrtLine
) -> LTAResult<CrowdDensityForecast>
fn get_crowd_density_forecast( client: <AClient<ReqwestBlocking>, train_line: MrtLine ) -> LTAResult<CrowdDensityForecast>
Returns forecasted platform crowdedness level for the MRT/LRT stations of a
particular train network line at 30 minutes interval Read more
source§impl CrowdRequests<LTAClient<Client>> for Crowd
impl CrowdRequests<LTAClient<Client>> for Crowd
source§async fn get_passenger_vol_by<S, D>(
client: <AClient<ReqwestAsync>,
vol_type: VolType,
date: D,
skip: S
) -> LTAResult<Vec<String>>
async fn get_passenger_vol_by<S, D>( client: <AClient<ReqwestAsync>, vol_type: VolType, date: D, skip: S ) -> LTAResult<Vec<String>>
Update freq: By 15th of every month, the passenger volume for previous month data
will be generated Read more
source§async fn get_crowd_density_rt(
client: <AClient<ReqwestAsync>,
train_line: MrtLine
) -> LTAResult<Vec<StationCrowdLevel>>
async fn get_crowd_density_rt( client: <AClient<ReqwestAsync>, train_line: MrtLine ) -> LTAResult<Vec<StationCrowdLevel>>
Returns real-time platform crowdedness level for the MRT/LRT stations of a
particular train network line Read more
source§async fn get_crowd_density_forecast(
client: <AClient<ReqwestAsync>,
train_line: MrtLine
) -> LTAResult<CrowdDensityForecast>
async fn get_crowd_density_forecast( client: <AClient<ReqwestAsync>, train_line: MrtLine ) -> LTAResult<CrowdDensityForecast>
Returns forecasted platform crowdedness level for the MRT/LRT stations of a
particular train network line at 30 minutes interval Read more
source§impl Ord for Crowd
impl Ord for Crowd
source§impl PartialEq for Crowd
impl PartialEq for Crowd
source§impl PartialOrd for Crowd
impl PartialOrd for Crowd
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Crowd
impl Eq for Crowd
impl StructuralEq for Crowd
impl StructuralPartialEq for Crowd
Auto Trait Implementations§
impl RefUnwindSafe for Crowd
impl Send for Crowd
impl Sync for Crowd
impl Unpin for Crowd
impl UnwindSafe for Crowd
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
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.