pub struct PersianDate {
pub year: i64,
pub month: PersianMonth,
pub day: u8,
}Expand description
A date in the Persian (Solar Hijri / Jalaali) calendar.
Year 1 AP (Anno Persico) corresponds to 622 CE, the year of the Hijra. The year begins at the vernal equinox (Nowruz).
Fields§
§year: i64Year (Anno Persico). Year 1 = 622 CE.
month: PersianMonthMonth (one of the 12 Persian months).
day: u8Day of month (1–31 for months 1–6, 1–30 for months 7–11, 1–29/30 for Esfand).
Trait Implementations§
Source§impl Clone for PersianDate
impl Clone for PersianDate
Source§fn clone(&self) -> PersianDate
fn clone(&self) -> PersianDate
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 PersianDate
impl Debug for PersianDate
Source§impl<'de> Deserialize<'de> for PersianDate
impl<'de> Deserialize<'de> for PersianDate
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 PersianDate
impl Display for PersianDate
Source§impl PartialEq for PersianDate
impl PartialEq for PersianDate
Source§impl Serialize for PersianDate
impl Serialize for PersianDate
impl Copy for PersianDate
impl Eq for PersianDate
impl StructuralPartialEq for PersianDate
Auto Trait Implementations§
impl Freeze for PersianDate
impl RefUnwindSafe for PersianDate
impl Send for PersianDate
impl Sync for PersianDate
impl Unpin for PersianDate
impl UnsafeUnpin for PersianDate
impl UnwindSafe for PersianDate
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