tape: implement inventory command

This commit is contained in:
Dietmar Maurer
2020-12-11 07:39:28 +01:00
parent 8bc5eebeb8
commit 83abc7497d
4 changed files with 206 additions and 13 deletions

View File

@ -83,3 +83,14 @@ pub struct MediaLabelInfoFlat {
#[serde(skip_serializing_if="Option::is_none")]
pub media_set_ctime: Option<i64>,
}
#[api()]
#[derive(Serialize,Deserialize)]
#[serde(rename_all = "kebab-case")]
/// Label with optional Uuid
pub struct LabelUuidMap {
/// Changer ID (label)
pub changer_id: String,
/// Associated Uuid (if any)
pub uuid: Option<String>,
}