Expand description

Aspiration

Unofficial library for Holiday API written in Rust. This repo implements interface for original HolidayAPI endpoints seen here.

Acknowledgments

This project is heavily inspired by holidayapi-node and holiday-api-rust repositories.

Installation

$ cargo add holidayapi_rust

Usage

use holidayapi_rust::prelude::*;

#[tokio::main]
async fn main() {
	let api = HolidayAPI::new("00000000-0000-0000-0000-000000000000").unwrap();
	let request = api.holidays("us", 2021).month(10).day(20).public().upcoming();
	let response = request.get().await;
	match response {
		Ok(_) => { /* */ },
		Err(_) => { /* */ },
	}
}

Modules

Structs

A Response to a submitted Request.

Enums