You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is an alternative to the #[optional(your_default_value_goes_here)] syntax. Instead struct definition could be name: Type default your_default_value_goes_here.
This is an alternative to the
#[optional(your_default_value_goes_here)]
syntax. Instead struct definition could bename: Type default your_default_value_goes_here
.For example:
which could then be instantiated (for example) in the following ways:
This would require a contextual
default
keyword, but I believe that wouldn't be problematic given that nothing was valid in that context previously.The text was updated successfully, but these errors were encountered: