pub struct CalendarCellProps {
pub day: u8,
pub is_today: bool,
pub is_current_month: bool,
pub event_count: u32,
pub dot_colors: Vec<String>,
}Expand description
Props for a calendar day cell.
Renders a single day in a month grid with today highlight, out-of-month muting, and event count indicator.
Fields§
§day: u8§is_today: bool§is_current_month: bool§event_count: u32§dot_colors: Vec<String>Optional per-event Tailwind color classes (e.g. “bg-blue-500”). When non-empty, colored dots are rendered instead of plain primary dots.
Trait Implementations§
Source§impl Clone for CalendarCellProps
impl Clone for CalendarCellProps
Source§fn clone(&self) -> CalendarCellProps
fn clone(&self) -> CalendarCellProps
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 CalendarCellProps
impl Debug for CalendarCellProps
Source§impl<'de> Deserialize<'de> for CalendarCellProps
impl<'de> Deserialize<'de> for CalendarCellProps
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 JsonSchema for CalendarCellProps
impl JsonSchema for CalendarCellProps
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for CalendarCellProps
impl PartialEq for CalendarCellProps
Source§impl Serialize for CalendarCellProps
impl Serialize for CalendarCellProps
impl StructuralPartialEq for CalendarCellProps
Auto Trait Implementations§
impl Freeze for CalendarCellProps
impl RefUnwindSafe for CalendarCellProps
impl Send for CalendarCellProps
impl Sync for CalendarCellProps
impl Unpin for CalendarCellProps
impl UnsafeUnpin for CalendarCellProps
impl UnwindSafe for CalendarCellProps
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