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
I believe this is intentional. Instead, the builder pattern is used to force compliance with the different CloudEvent Spec versions (0.3 and 1.0). It aligns with this note in the API guidelines:
If your type has a multiplicity of construction options though, consider the builder pattern (C-BUILDER) instead.
Users expect to use
Event::new()
to construct a event.According to API guideline: https://rust-lang.github.io/api-guidelines/predictability.html
Event::new()
The text was updated successfully, but these errors were encountered: