Struct holiday_event_api::HolidayEventApi
source · pub struct HolidayEventApi { /* private fields */ }Implementations§
source§impl HolidayEventApi
impl HolidayEventApi
pub fn new(api_key: String, base_url: Option<String>) -> Result<Self, String>
sourcepub async fn get_events(
&self,
request: GetEventsRequest
) -> Result<GetEventsResponse, String>
pub async fn get_events( &self, request: GetEventsRequest ) -> Result<GetEventsResponse, String>
Gets the Events for the provided Date
sourcepub async fn get_event_info(
&self,
request: GetEventInfoRequest
) -> Result<GetEventInfoResponse, String>
pub async fn get_event_info( &self, request: GetEventInfoRequest ) -> Result<GetEventInfoResponse, String>
Gets the Event Info for the provided Event
sourcepub async fn search(
&self,
request: SearchRequest
) -> Result<SearchResponse, String>
pub async fn search( &self, request: SearchRequest ) -> Result<SearchResponse, String>
Searches for Events with the given criteria
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for HolidayEventApi
impl Send for HolidayEventApi
impl Sync for HolidayEventApi
impl Unpin for HolidayEventApi
impl !UnwindSafe for HolidayEventApi
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