updated README and a bunch of other stuff

This commit is contained in:
Sebastian Moser
2026-11-04 20:24:14 +01:00
parent 6eedb1826a
commit 9707286375
46 changed files with 3725 additions and 172 deletions

View File

@@ -238,6 +238,9 @@ impl ItemData {
pub fn value_string(self) -> MizeResult<String> {
match self.cbor() {
CborValue::Text(string) => Ok(string.to_owned()),
CborValue::Bool(val) => Ok(format!("{val}")),
CborValue::Integer(val) => Ok(format!("{}", u32::try_from(val.clone())?)),
CborValue::Float(val) => Ok(format!("{val}")),
_ => Err(mize_err!("this ItemData has no string value")),
}
}