light_prover_client/
proof_type.rs1use std::fmt::{Display, Formatter};
2
3#[derive(Debug, Clone, Copy, PartialEq)]
4pub enum ProofType {
5 Inclusion,
6 NonInclusion,
7 Combined,
8 BatchAppend,
9 BatchUpdate,
10 BatchAddressAppend,
11 BatchUpdateTest,
12 BatchAppendTest,
13 BatchAddressAppendTest,
14}
15
16impl Display for ProofType {
17 fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
18 write!(
19 f,
20 "{}",
21 match self {
22 ProofType::Inclusion => "inclusion",
23 ProofType::NonInclusion => "non-inclusion",
24 ProofType::Combined => "combined",
25 ProofType::BatchAppend => "append",
26 ProofType::BatchUpdate => "update",
27 ProofType::BatchUpdateTest => "update-test",
28 ProofType::BatchAppendTest => "append-test",
29 ProofType::BatchAddressAppend => "address-append",
30 ProofType::BatchAddressAppendTest => "address-append-test",
31 }
32 )
33 }
34}