12 lines
298 B
Rust
12 lines
298 B
Rust
use serde::{Deserialize, Serialize};
|
|
|
|
#[derive(Debug, Serialize, Deserialize, Default, Clone, PartialEq, Eq, Hash, PartialOrd, Ord)]
|
|
pub struct CommitmentMethod {
|
|
pub method: String,
|
|
}
|
|
impl CommitmentMethod {
|
|
pub fn new(method: String) -> Self {
|
|
CommitmentMethod { method }
|
|
}
|
|
}
|