salati/models/twilight.rs
1use clap::ValueEnum;
2
3#[derive(PartialEq, Debug, Copy, Clone, ValueEnum)]
4/// Enum to define how Isha prayer should be computed
5/// Imam Abu Hanifa consider that scripts refer to white twilight (shafaq), however
6/// other schools and two main students of Abu Hanifa (incl. Abu Yussuf)
7/// consider that they meant red twilight
8pub enum Twilight {
9 White,
10 Red,
11}
12
13impl Default for Twilight {
14 fn default() -> Self {
15 Twilight::Red
16 }
17}