pub struct StaticSchemaMarkerField {
pub key: &'static str,
pub label: &'static str,
pub format: MarkerFieldFormat,
pub flags: MarkerFieldFlags,
}
Expand description
The field definition of a marker field, used in StaticSchemaMarker::FIELDS
.
For each marker which uses this schema, the value for this field is supplied by the
marker’s implementation of number_field_value
/
string_field_value
, depending on this field
format’s kind.
Used with runtime-generated marker schemas. Use RuntimeSchemaMarkerField
when using RuntimeSchemaMarkerSchema
.
Fields§
§key: &'static str
The field key. Must not be type
or cause
.
label: &'static str
The user-visible label of this field.
format: MarkerFieldFormat
The format of this field.
flags: MarkerFieldFlags
Additional field flags.
Trait Implementations§
Source§impl From<&StaticSchemaMarkerField> for RuntimeSchemaMarkerField
impl From<&StaticSchemaMarkerField> for RuntimeSchemaMarkerField
Source§fn from(schema: &StaticSchemaMarkerField) -> Self
fn from(schema: &StaticSchemaMarkerField) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for StaticSchemaMarkerField
impl RefUnwindSafe for StaticSchemaMarkerField
impl Send for StaticSchemaMarkerField
impl Sync for StaticSchemaMarkerField
impl Unpin for StaticSchemaMarkerField
impl UnwindSafe for StaticSchemaMarkerField
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