pub struct FastingType(pub Cow<'static, str>);Expand description
Extensible fasting type/reason.
Tuple Fields§
§0: Cow<'static, str>Implementations§
Source§impl FastingType
impl FastingType
pub const RAMADHAN: Self
pub const ARAFAH: Self
pub const TASUA: Self
pub const ASHURA: Self
pub const AYYAMUL_BIDH: Self
pub const MONDAY: Self
pub const THURSDAY: Self
pub const SHAWWAL: Self
pub const DAUD: Self
pub const EID_AL_FITR: Self
pub const EID_AL_ADHA: Self
pub const TASHRIQ: Self
pub const FRIDAY_EXCLUSIVE: Self
pub const SATURDAY_EXCLUSIVE: Self
pub fn custom(name: &str) -> Self
pub fn Ramadhan() -> Self
pub fn Arafah() -> Self
pub fn Tasua() -> Self
pub fn Ashura() -> Self
pub fn AyyamulBidh() -> Self
pub fn Monday() -> Self
pub fn Thursday() -> Self
pub fn Shawwal() -> Self
pub fn Daud() -> Self
pub fn EidAlFitr() -> Self
pub fn EidAlAdha() -> Self
pub fn Tashriq() -> Self
pub fn FridayExclusive() -> Self
pub fn SaturdayExclusive() -> Self
pub fn is_haram_type(&self) -> bool
pub fn is_sunnah_type(&self) -> bool
Trait Implementations§
Source§impl Clone for FastingType
impl Clone for FastingType
Source§fn clone(&self) -> FastingType
fn clone(&self) -> FastingType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FastingType
impl Debug for FastingType
Source§impl<'de> Deserialize<'de> for FastingType
impl<'de> Deserialize<'de> for FastingType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for FastingType
impl Display for FastingType
Source§impl Hash for FastingType
impl Hash for FastingType
Source§impl PartialEq for FastingType
impl PartialEq for FastingType
Source§impl Serialize for FastingType
impl Serialize for FastingType
impl Eq for FastingType
impl StructuralPartialEq for FastingType
Auto Trait Implementations§
impl Freeze for FastingType
impl RefUnwindSafe for FastingType
impl Send for FastingType
impl Sync for FastingType
impl Unpin for FastingType
impl UnwindSafe for FastingType
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