bitwarden_api_api/models/
key_model.rsuse serde::{Deserialize, Serialize};
use crate::models;
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct KeyModel {
#[serde(rename = "name", skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(rename = "id", skip_serializing_if = "Option::is_none")]
pub id: Option<i32>,
#[serde(rename = "migrated", skip_serializing_if = "Option::is_none")]
pub migrated: Option<bool>,
}
impl KeyModel {
pub fn new() -> KeyModel {
KeyModel {
name: None,
id: None,
migrated: None,
}
}
}