cloudevents/message/encoding.rs
1use std::fmt::Debug;
2
3/// Represents one of the possible [message encodings/modes](https://github.com/cloudevents/spec/blob/v1.0/spec.md#message).
4#[derive(PartialEq, Eq, Debug)]
5pub enum Encoding {
6 /// Represents the _structured-mode message_.
7 STRUCTURED,
8 /// Represents the _binary-mode message_.
9 BINARY,
10 /// Represents a non-CloudEvent or a malformed CloudEvent that cannot be recognized by the SDK.
11 UNKNOWN,
12}