use massa_models::address::Address;
use serde::{Deserialize, Serialize};
#[derive(Debug, Deserialize, Clone, Serialize)]
pub struct DatastoreEntryInput {
pub address: Address,
pub key: Vec<u8>,
}
#[derive(Debug, Deserialize, Clone, Serialize)]
pub struct DatastoreEntryOutput {
pub final_value: Option<Vec<u8>>,
pub candidate_value: Option<Vec<u8>>,
}
impl std::fmt::Display for DatastoreEntryOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
writeln!(f, "final value: {:?}", self.final_value)?;
writeln!(f, "candidate value: {:?}", self.candidate_value)?;
Ok(())
}
}