use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct Signature {
#[serde(rename = "format")]
pub format: Box<models::SignatureFormat>,
#[serde(rename = "signature")]
pub signature: String,
#[serde(rename = "signedBy")]
pub signed_by: String,
#[serde(rename = "signingAlgorithmSpec")]
pub signing_algorithm_spec: Box<models::SigningAlgorithmSpec>,
}
impl Signature {
pub fn new(format: models::SignatureFormat, signature: String, signed_by: String, signing_algorithm_spec: models::SigningAlgorithmSpec) -> Signature {
Signature {
format: Box::new(format),
signature,
signed_by,
signing_algorithm_spec: Box::new(signing_algorithm_spec),
}
}
}