Skip to content

Restaurant registry#17

Open
Christopherdominic wants to merge 2 commits into
thebuidl-grid:mainfrom
Christopherdominic:restaurant-registry
Open

Restaurant registry#17
Christopherdominic wants to merge 2 commits into
thebuidl-grid:mainfrom
Christopherdominic:restaurant-registry

Conversation

@Christopherdominic

Copy link
Copy Markdown
Collaborator

This PR introduces a simple food registry application in Rust. The application manages a list of food items, each with properties such as name, expiration status, category, and price. It demonstrates basic validation and categorization of food items.

Changes

  • Defines Fooddata struct

  • food properties and categories.

  • Implements a registry of food items with sample data.

  • Adds validation for food items (checks for negative price and empty name).

  • Prints food details and warns if an item is expired.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant