Struct fuel_gql_client::schema::ColumnDescriptor
source · [−]pub struct ColumnDescriptor {
pub attribute_name: String,
pub format: Option<String>,
pub label: String,
pub type_: Option<String>,
pub width: Option<i64>,
}
Expand description
A ColumnDescriptor specifies what module attribute to show in a column of the ModulesView, how to format it, and what the column’s label should be. It is only used if the underlying UI actually supports this level of customization.
Fields
attribute_name: String
Name of the attribute rendered in this column.
format: Option<String>
Format to use for the rendered values in this column. TBD how the format strings looks like.
label: String
Header UI label of column.
type_: Option<String>
Datatype of values in this column. Defaults to ‘string’ if not specified.
width: Option<i64>
Width of this column in characters (hint only).
Trait Implementations
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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for ColumnDescriptor
impl Send for ColumnDescriptor
impl Sync for ColumnDescriptor
impl Unpin for ColumnDescriptor
impl UnwindSafe for ColumnDescriptor
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more