src/backup/backup_info.rs: impl Display for BackupGroup
This commit is contained in:
parent
a6f8728339
commit
23f74c190e
@ -141,6 +141,14 @@ impl BackupGroup {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl std::fmt::Display for BackupGroup {
|
||||||
|
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||||
|
let backup_type = self.backup_type();
|
||||||
|
let id = self.backup_id();
|
||||||
|
write!(f, "{}/{}", backup_type, id)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
impl std::str::FromStr for BackupGroup {
|
impl std::str::FromStr for BackupGroup {
|
||||||
type Err = Error;
|
type Err = Error;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user