Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(model): Add associated types to CommandOption(Value). #2415

Merged

Conversation

Erk-
Copy link
Member

@Erk- Erk- commented Jan 30, 2025

This commit adds associated types for the integer and floating point range that is allowed.

It also adds a range that contains the allowed length of a string.

Closes #2402

This commit adds associated types for the integer and floating point
range that is allowed.

It also adds a range that contains the allowed length of a string.

Closes #2402
@github-actions github-actions bot added c-model Affects the model crate t-feature Addition of a new feature labels Jan 30, 2025
@Erk- Erk- requested a review from khionu February 5, 2025 15:53
@Erk- Erk- merged commit 8e55599 into main Feb 9, 2025
9 checks passed
@Erk- Erk- deleted the erk/feat/model/associated-constants-on-command-option-type branch February 9, 2025 19:36
viztea pushed a commit to eara-bot/twilight that referenced this pull request Feb 15, 2025
…rs#2415)

This commit adds associated types for the integer and floating point
range that is allowed.

It also adds a range that contains the allowed length of a string.

Closes twilight-rs#2402
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c-model Affects the model crate t-feature Addition of a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

FR: Associated constants on CommandOptionValue for min/max values
4 participants