pub struct CalverDate {
pub year: u32,
pub month: u32,
pub day: u32,
pub iso_week: u32,
pub day_of_week: u32,
}Expand description
Date information needed for calver computation.
All fields are simple integers — the caller is responsible for computing them from the current date. This keeps the library pure (no clock access).
Fields§
§year: u32Full year (e.g. 2026).
month: u32Month (1–12).
day: u32Day of month (1–31).
iso_week: u32ISO week number (1–53).
day_of_week: u32ISO day of week (1=Monday, 7=Sunday).
Trait Implementations§
Source§impl Clone for CalverDate
impl Clone for CalverDate
Source§fn clone(&self) -> CalverDate
fn clone(&self) -> CalverDate
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 CalverDate
impl Debug for CalverDate
Source§impl PartialEq for CalverDate
impl PartialEq for CalverDate
impl Copy for CalverDate
impl Eq for CalverDate
impl StructuralPartialEq for CalverDate
Auto Trait Implementations§
impl Freeze for CalverDate
impl RefUnwindSafe for CalverDate
impl Send for CalverDate
impl Sync for CalverDate
impl Unpin for CalverDate
impl UnsafeUnpin for CalverDate
impl UnwindSafe for CalverDate
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