4c8c9f6c8a
Co-authored-by: Micha de Vries <micha@devrie.sh>
26 lines
620 B
Rust
26 lines
620 B
Rust
use revision::revisioned;
|
|
use serde::{Deserialize, Serialize};
|
|
use std::fmt;
|
|
|
|
#[revisioned(revision = 1)]
|
|
#[derive(Clone, Copy, Debug, Eq, PartialEq, PartialOrd, Serialize, Deserialize, Hash)]
|
|
#[cfg_attr(feature = "arbitrary", derive(arbitrary::Arbitrary))]
|
|
/// ChangeFeedInclude statements are an appendix
|
|
#[non_exhaustive]
|
|
pub enum ChangeFeedInclude {
|
|
Original,
|
|
}
|
|
|
|
impl Default for ChangeFeedInclude {
|
|
fn default() -> Self {
|
|
Self::Original
|
|
}
|
|
}
|
|
|
|
impl fmt::Display for ChangeFeedInclude {
|
|
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
|
f.write_str(match self {
|
|
Self::Original => "Original",
|
|
})
|
|
}
|
|
}
|