Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/field.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,20 @@ impl Field<Type> {
pub fn get_name(&self) -> String {
self.accessor.to_string()
}

pub fn get_attrs(&self) -> &[Attribute] {
&self.attrs
}
}

impl Field<Value> {
pub fn get_value(&self) -> Value {
self.element
}
}

impl Field<Type> {
pub fn get_type(&self) -> &Type {
&self.element
}
}