#[derive(Clone, Debug)]
#[non_exhaustive]
pub struct OtaFirmwareParams {
pub model: String,
}
impl OtaFirmwareParams {
pub fn new(model: impl Into<String>) -> Self {
Self {
model: model.into(),
}
}
}
#[derive(Clone, Debug)]
#[non_exhaustive]
pub struct OtaUpgradeParams {
pub dids: Vec<String>,
}
impl OtaUpgradeParams {
pub fn new(dids: impl Into<Vec<String>>) -> Self {
Self { dids: dids.into() }
}
}
#[derive(Clone, Debug)]
#[non_exhaustive]
pub struct OtaUpgradeStatusParams {
pub dids: Vec<String>,
}
impl OtaUpgradeStatusParams {
pub fn new(dids: impl Into<Vec<String>>) -> Self {
Self { dids: dids.into() }
}
}