From: Andrea Zagli Date: Fri, 6 Jan 2023 10:31:17 +0000 (+0100) Subject: Get field's name. X-Git-Url: https://saetta.ns0.it/gitweb?a=commitdiff_plain;h=8898c05a63f20ca49ae9a337ea3ae5c94974c889;p=rust%2Fzakform Get field's name. --- 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()) }