tape: rename changer_id to label_text

This commit is contained in:
Dietmar Maurer
2021-01-13 13:26:59 +01:00
parent 9738dd545f
commit 8446fbca85
19 changed files with 171 additions and 171 deletions

View File

@ -87,7 +87,7 @@ pub enum MtxEntryKind {
"entry-kind": {
type: MtxEntryKind,
},
"changer-id": {
"label-text": {
schema: MEDIA_LABEL_SCHEMA,
optional: true,
},
@ -102,7 +102,7 @@ pub struct MtxStatusEntry {
pub entry_id: u64,
/// The media label (volume tag) if the slot/drive is full
#[serde(skip_serializing_if="Option::is_none")]
pub changer_id: Option<String>,
pub label_text: Option<String>,
/// The slot the drive was loaded from
#[serde(skip_serializing_if="Option::is_none")]
pub loaded_slot: Option<u64>,

View File

@ -21,8 +21,8 @@ use super::{
#[serde(rename_all = "kebab-case")]
/// Media list entry
pub struct MediaListEntry {
/// Media changer ID
pub changer_id: String,
/// Media label text (or Barcode)
pub label_text: String,
/// Media Uuid
pub uuid: String,
/// Creation time stamp
@ -57,8 +57,8 @@ pub struct MediaListEntry {
pub struct MediaIdFlat {
/// Unique ID
pub uuid: String,
/// Media Changer ID or Barcode
pub changer_id: String,
/// Media label text (or Barcode)
pub label_text: String,
/// Creation time stamp
pub ctime: i64,
// All MediaSet properties are optional here
@ -81,8 +81,8 @@ pub struct MediaIdFlat {
#[serde(rename_all = "kebab-case")]
/// Label with optional Uuid
pub struct LabelUuidMap {
/// Changer ID (label)
pub changer_id: String,
/// Changer label text (or Barcode)
pub label_text: String,
/// Associated Uuid (if any)
pub uuid: Option<String>,
}
@ -92,8 +92,8 @@ pub struct LabelUuidMap {
#[serde(rename_all = "kebab-case")]
/// Media content list entry
pub struct MediaContentEntry {
/// Media changer ID
pub changer_id: String,
/// Media label text (or Barcode)
pub label_text: String,
/// Media Uuid
pub uuid: String,
/// Media set name