updated README and a bunch of other stuff
This commit is contained in:
@@ -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")),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user