summaryrefslogtreecommitdiff
path: root/rust/src
diff options
context:
space:
mode:
Diffstat (limited to 'rust/src')
-rw-r--r--rust/src/qualified_name.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/rust/src/qualified_name.rs b/rust/src/qualified_name.rs
index 62da86b8..aed045a0 100644
--- a/rust/src/qualified_name.rs
+++ b/rust/src/qualified_name.rs
@@ -193,6 +193,15 @@ impl From<String> for QualifiedName {
}
}
+impl From<BnString> for QualifiedName {
+ fn from(value: BnString) -> Self {
+ Self {
+ items: vec![value.to_string_lossy().to_string()],
+ separator: String::from("::"),
+ }
+ }
+}
+
impl From<&str> for QualifiedName {
fn from(value: &str) -> Self {
Self::from(value.to_string())