Crate hebcal

Source
Expand description

§HebCal: hebcal.com REST API client

HebCal is an API client for several of the RESTful APIs offered at https://www.hebcal.com/home/developer-apis

§Shabbat API

The Shabbat times API returns location specific Shabbat times and details.

use hebcal::{
    shabbat::{Leyning, Transliteration},
    HebCal, Result,
};

async fn f() -> Result<(), Box<dyn std::error::Error>> {
    let hebcal = HebCal::default();
    let shabbat = hebcal
     .shabbat()
     .transliteration(Transliteration::Ashkenazic)
     .zip("94706")
     .leyning(Leyning::Off)
     .send()
     .await?;
     
    // do stuff with `shabbat`

    Ok(())
}

Modules§

Structs§

Type Aliases§