cloudevents/sdk-rust

Event does not have `new` method

xiaoas opened this issue · 1 comments

Users expect to use Event::new() to construct a event.
According to API guideline: https://rust-lang.github.io/api-guidelines/predictability.html

  • we should implement Event::new()
  • we should revise the doc to encourage the use of Event::new()`