pub struct RuntimeSchemaMarkerField {
pub key: String,
pub label: String,
pub format: MarkerFieldFormat,
pub flags: MarkerFieldFlags,
}
Expand description
The field definition of a marker field, used in RuntimeSchemaMarkerSchema::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 StaticSchemaMarkerField
when using StaticSchemaMarker
.
Fields§
§key: String
The field key. Must not be type
or cause
.
label: String
The user-visible label of this field.
format: MarkerFieldFormat
The format of this field.
flags: MarkerFieldFlags
Whether this field’s value should be matched against search terms.
Trait Implementations§
Source§impl Clone for RuntimeSchemaMarkerField
impl Clone for RuntimeSchemaMarkerField
Source§fn clone(&self) -> RuntimeSchemaMarkerField
fn clone(&self) -> RuntimeSchemaMarkerField
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for RuntimeSchemaMarkerField
impl Debug for RuntimeSchemaMarkerField
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 RuntimeSchemaMarkerField
impl RefUnwindSafe for RuntimeSchemaMarkerField
impl Send for RuntimeSchemaMarkerField
impl Sync for RuntimeSchemaMarkerField
impl Unpin for RuntimeSchemaMarkerField
impl UnwindSafe for RuntimeSchemaMarkerField
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