2024-02-28 19:35:39 +00:00
|
|
|
use revision::revisioned;
|
|
|
|
use serde::{Deserialize, Serialize};
|
|
|
|
use std::fmt;
|
|
|
|
|
|
|
|
#[derive(Clone, Copy, Debug, Eq, PartialEq, PartialOrd, Serialize, Deserialize, Hash)]
|
|
|
|
#[cfg_attr(feature = "arbitrary", derive(arbitrary::Arbitrary))]
|
|
|
|
#[revisioned(revision = 1)]
|
|
|
|
/// ChangeFeedInclude statements are an appendix
|
2024-04-02 20:12:08 +00:00
|
|
|
#[non_exhaustive]
|
2024-02-28 19:35:39 +00:00
|
|
|
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",
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|