#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct WalletSecretBase {
#[serde(rename = "pChainAddress", skip_serializing_if = "Option::is_none")]
pub p_chain_address: Option<String>,
#[serde(rename = "privateKey", skip_serializing_if = "Option::is_none")]
pub private_key: Option<String>,
#[serde(rename = "privateKeyFormat", skip_serializing_if = "Option::is_none")]
pub private_key_format: Option<PrivateKeyFormat>,
#[serde(rename = "secretType", skip_serializing_if = "Option::is_none")]
pub secret_type: Option<Box<crate::models::SecretType>>,
}
impl WalletSecretBase {
pub fn new() -> WalletSecretBase {
WalletSecretBase {
p_chain_address: None,
private_key: None,
private_key_format: None,
secret_type: None,
}
}
}
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum PrivateKeyFormat {
#[serde(rename = "cb58")]
Cb58,
#[serde(rename = "hex")]
Hex,
}
impl Default for PrivateKeyFormat {
fn default() -> PrivateKeyFormat {
Self::Cb58
}
}