-
Notifications
You must be signed in to change notification settings - Fork 60
Event Data Structure #1
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
Comments
Attributes should be represented as union type to support different spec versions. The struct Event {
attribute: Attribute,
data: Data
} Extensions could be represented as https://github.com/kichristensen/rust-cloudevents/blob/master/cloudevents/src/v1_0/event.rs#L32 Accessors to read and write payload could be implemented like https://github.com/slinkydeveloper/cloudevents-rust/blob/master/cloudevents-rust/src/event/payload.rs#L56 |
Resolved: 1. https://github.com/cloudevents/sdk-rust/pull/26/files#r409586754 2. https://github.com/cloudevents/sdk-rust/pull/26/files#r409585595 Signed-off-by: Pranav Bhatt <adpranavb2000@gmail.com>
Resolved: 1. https://github.com/cloudevents/sdk-rust/pull/26/files#r409586754 2. https://github.com/cloudevents/sdk-rust/pull/26/files#r409585595 Signed-off-by: Pranav Bhatt <adpranavb2000@gmail.com>
Signed-off-by: Pranav Bhatt <adpranavb2000@gmail.com>
* exposed iterator via enum Signed-off-by: Pranav Bhatt <adpranavb2000@gmail.com> * exposed iterator Signed-off-by: Pranav Bhatt <adpranavb2000@gmail.com> * exposed iterator(finalise#1) Signed-off-by: Pranav Bhatt <adpranavb2000@gmail.com> * resolving pull request issues #1 Signed-off-by: Pranav Bhatt <adpranavb2000@gmail.com> * resolving pull request issues #2 Signed-off-by: Pranav Bhatt <adpranavb2000@gmail.com> * resolving pull request issues #3 Signed-off-by: Pranav Bhatt <adpranavb2000@gmail.com> * Copy trait issue Signed-off-by: Pranav Bhatt <adpranavb2000@gmail.com> * Attributes Iterator finalise #2 Signed-off-by: Pranav Bhatt <adpranavb2000@gmail.com> * Attributes Iterator finalise #3 Signed-off-by: Pranav Bhatt <adpranavb2000@gmail.com> * Attributes Iterator finalise #4 Signed-off-by: Pranav Bhatt <adpranavb2000@gmail.com> * Attributes Iterator finalise #5 Signed-off-by: Pranav Bhatt <adpranavb2000@gmail.com>
Signed-off-by: adpranavb2000@gmail.com <adpranavb2000@gmail.com>
Signed-off-by: adpranavb2000@gmail.com <adpranavb2000@gmail.com>
Signed-off-by: adpranavb2000@gmail.com <adpranavb2000@gmail.com>
Signed-off-by: adpranavb2000@gmail.com <adpranavb2000@gmail.com>
Signed-off-by: adpranavb2000@gmail.com <adpranavb2000@gmail.com>
Signed-off-by: adpranavb2000@gmail.com <adpranavb2000@gmail.com>
Data structures to represent CloudEvents that can be extended in future to support different cloudevents versions. Some examples:
We also need easy accessors to read cloudevents metadata, extensions and payload. An example to read and parse payload: https://github.com/slinkydeveloper/cloudevents-rust/blob/master/cloudevents-rust/src/event/payload.rs
Data structure could be immutable, so we builders to build them. For builders we can try to use https://docs.rs/crate/derive_builder/0.9.0
The text was updated successfully, but these errors were encountered: