bitwarden_api_api/models/
signature_key_pair_response_model.rs1use serde::{Deserialize, Serialize};
12
13use crate::models;
14
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct SignatureKeyPairResponseModel {
17 #[serde(
18 rename = "object",
19 alias = "Object",
20 skip_serializing_if = "Option::is_none"
21 )]
22 pub object: Option<String>,
23 #[serde(rename = "wrappedSigningKey", alias = "WrappedSigningKey")]
24 pub wrapped_signing_key: Option<String>,
25 #[serde(rename = "verifyingKey", alias = "VerifyingKey")]
26 pub verifying_key: Option<String>,
27}
28
29impl SignatureKeyPairResponseModel {
30 pub fn new(
31 wrapped_signing_key: Option<String>,
32 verifying_key: Option<String>,
33 ) -> SignatureKeyPairResponseModel {
34 SignatureKeyPairResponseModel {
35 object: None,
36 wrapped_signing_key,
37 verifying_key,
38 }
39 }
40}