pub trait TableData:
'static
+ Default
+ Clone
+ Ord
+ Serialize {
// Required methods
fn get_field_as_html(&self, field_name: &str) -> Result<Html<Table<Self>>>;
fn get_field_as_value(&self, field_name: &str) -> Result<Value>;
}Required Methods§
Sourcefn get_field_as_html(&self, field_name: &str) -> Result<Html<Table<Self>>>
fn get_field_as_html(&self, field_name: &str) -> Result<Html<Table<Self>>>
Returns the Html representation of a field. When None, the field is not rendered.
Sourcefn get_field_as_value(&self, field_name: &str) -> Result<Value>
fn get_field_as_value(&self, field_name: &str) -> Result<Value>
Returns a table value given its field name. This value is used as a sorting key for the corresponding column.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".