Skip to main content

Crate meal_planner

Crate meal_planner 

Source
Expand description

Meal planning domain and persistence foundation for EME.

Structs§

FamilyMember
Stable household member identity.
MealAssignment
MealException
One-off date-specific override.
MealParticipation
Resolved arrangement for one member, meal and local calendar date.
MealPlannerApplication
MealPlannerConfig
Configuration shared by the Meal Planner application and its adapters.
MealPlannerStore
Shared SQLite connection for Meal Planner persistence operations.
NewShoppingListItem
ParticipationResolver
Stateless resolver independent of persistence, HTTP and the agent runtime.
PlanParticipant
PlanningContext
PlanningParticipation
Recipe
Persisted recipe.
RecipeDraft
Input accepted when creating or replacing a recipe.
RecipeIngredient
One structured ingredient. Unknown quantities remain None; no amount is inferred.
RecurringParticipationRule
Recurring rule with inclusive optional effective dates.
SchoolMenuDraft
SchoolMenuEntry
SchoolMenuItem
ShoppingList
ShoppingListItem
ShoppingListItemUpdate
WeeklyPlan
WeeklyPlanDraft

Enums§

MealArrangement
Explicit arrangement for a meal.
MealPlannerError
Errors exposed at the Meal Planner application boundary.
MealType
Meal categories supported by the planner.
MealWeekday
Weekday index: Monday is zero and Sunday is six.
ParticipationSource
Source of a configured arrangement.
ParticipationStatus
Missing configuration differs from an explicit not-participating choice.
SchoolMenuStatus

Functions§

register_tools
resolve_date
Resolve all active members for lunch and dinner. Exceptions win. Overlapping rules use the latest effective start (unbounded first), then the greatest rule ID.
resolve_week
Resolve seven consecutive local calendar dates beginning at start.