Skip to main content

sports_hydrations

Macro sports_hydrations 

Source
macro_rules! sports_hydrations {
    (@ inline_structs [$field:ident $(: $value:ty)? $(, $($t:tt)*)?] $vis:vis struct $name:ident { $($field_tt:tt)* }) => { ... };
    (@ inline_structs [$(,)?] $vis:vis struct $name:ident { $($t:tt)* }) => { ... };
    (@ actual $vis:vis struct $name:ident {
		$(season $season_comma:tt)?
	}) => { ... };
    ($vis:vis struct $name:ident { $($t:tt)* }) => { ... };
}
Expand description

Creates hydrations for a sport

§Examples

sports_hydrations! {
    pub struct TestHydrations {
        season,
    }
}

let response = SportsRequest::<TestHydrations>::builder().build_and_get().await.unwrap();
for sport in response.sports {
    dbg!(&sport.extras.season_date_info);
}

§Sport Hydrations

NameType
seasonSeason