From 8898c05a63f20ca49ae9a337ea3ae5c94974c889 Mon Sep 17 00:00:00 2001 From: Andrea Zagli Date: Fri, 6 Jan 2023 11:31:17 +0100 Subject: [PATCH] Get field's name. --- src/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 79e48ba..918fc1c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -59,6 +59,10 @@ impl Field { f } + pub fn name(&self) -> String { + String::from(self.name.as_str()) + } + pub fn label(&self) -> String { String::from(self.label.as_str()) } -- 2.49.0