diff --git a/src/field.rs b/src/field.rs index 99c0fac..51b8171 100644 --- a/src/field.rs +++ b/src/field.rs @@ -66,6 +66,10 @@ impl Field { pub fn get_name(&self) -> String { self.accessor.to_string() } + + pub fn get_attrs(&self) -> &[Attribute] { + &self.attrs + } } impl Field { @@ -73,3 +77,9 @@ impl Field { self.element } } + +impl Field { + pub fn get_type(&self) -> &Type { + &self.element + } +}