bitwarden_api_api/models/
push_update_request_model.rsuse serde::{Deserialize, Serialize};
use crate::models;
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct PushUpdateRequestModel {
#[serde(rename = "devices")]
pub devices: Vec<models::PushDeviceRequestModel>,
#[serde(rename = "organizationId")]
pub organization_id: String,
}
impl PushUpdateRequestModel {
pub fn new(
devices: Vec<models::PushDeviceRequestModel>,
organization_id: String,
) -> PushUpdateRequestModel {
PushUpdateRequestModel {
devices,
organization_id,
}
}
}