diff --git a/lib/src/model/literal.rs b/lib/src/model/literal.rs index 0be4c314..e99d0efa 100644 --- a/lib/src/model/literal.rs +++ b/lib/src/model/literal.rs @@ -405,6 +405,12 @@ impl From for Literal { } } +impl<'a> From> for Literal { + fn from(value: Cow<'a, str>) -> Self { + Literal(LiteralContent::String(value.into())) + } +} + impl From for Literal { fn from(value: bool) -> Self { Literal(LiteralContent::Boolean(value))