pub struct Column {
pub key: String,
pub label: String,
pub format: Option<ColumnFormat>,
pub align: Option<ColumnAlign>,
pub label_true: Option<String>,
pub label_false: Option<String>,
pub peek_entity: Option<String>,
}Expand description
Table column definition.
Fields§
§key: String§label: String§format: Option<ColumnFormat>§align: Option<ColumnAlign>Horizontal alignment of the header and cells. Defaults to left.
Use right for numeric/currency columns so magnitudes line up.
label_true: Option<String>Display label when the boolean cell value is true. Defaults to “Sì”.
label_false: Option<String>Display label when the boolean cell value is false. Defaults to “No”.
peek_entity: Option<String>When set, opts the link column into peek-cards by emitting
data-peek-entity and data-peek-id attributes on the rendered <a>.
Value is the entity kind, e.g. “clienti”, “prodotti”.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Column
impl<'de> Deserialize<'de> for Column
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for Column
impl JsonSchema for Column
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for Column
Auto Trait Implementations§
impl Freeze for Column
impl RefUnwindSafe for Column
impl Send for Column
impl Sync for Column
impl Unpin for Column
impl UnsafeUnpin for Column
impl UnwindSafe for Column
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more