diff --git a/src/convert.rs b/src/convert.rs index 93631ad..980f68f 100644 --- a/src/convert.rs +++ b/src/convert.rs @@ -93,6 +93,24 @@ impl IntoAttributeValue for usize { } } +impl IntoAttributeValue for u32 { + fn into_attribute_value(self) -> Option { + Some(format!("{}", self)) + } +} + +impl IntoAttributeValue for u16 { + fn into_attribute_value(self) -> Option { + Some(format!("{}", self)) + } +} + +impl IntoAttributeValue for u8 { + fn into_attribute_value(self) -> Option { + Some(format!("{}", self)) + } +} + impl IntoAttributeValue for String { fn into_attribute_value(self) -> Option { Some(self)