1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
use solana_sdk::clock::Slot; #[derive(Serialize, Deserialize, Clone, Debug, PartialEq, AbiExample, AbiEnumVisitor)] enum CompressionType { Uncompressed, GZip, BZip2, } impl Default for CompressionType { fn default() -> Self { Self::Uncompressed } } #[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq, AbiExample)] pub(crate) struct EpochIncompleteSlots { first: Slot, compression: CompressionType, compressed_list: Vec<u8>, }