refactor: Add secret to metadata (#706)

This commit is contained in:
Kartikeya Hegde
2023-03-08 13:05:07 +05:30
committed by GitHub
parent c451368f7b
commit d36afbed7f
19 changed files with 74 additions and 65 deletions

View File

@ -6,6 +6,9 @@ use masking::{Strategy, WithType};
use crate::validation::validate_email;
/// Type alias for serde_json value which has Secret Information
pub type SecretSerdeValue = masking::Secret<serde_json::Value>;
/// Card number
#[derive(Debug)]
pub struct CardNumber;