1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
use anchor_lang::prelude::*;
use std::fmt::{Display, Formatter, Result};

#[derive(AnchorDeserialize, AnchorSerialize, Clone, Debug)]
pub enum Role {
    Creditor,
    Debtor,
}

impl Display for Role {
    fn fmt(&self, f: &mut Formatter) -> Result {
        write!(f, "{:?}", self)
    }
}