pub enum MarkerSchemaField {
Static(MarkerStaticField),
Dynamic(MarkerDynamicField),
}
Expand description
The description of a marker field in the marker type’s schema.
Variants§
Static(MarkerStaticField)
Static fields have the same value on all markers. This is used for a “Description” field in the tooltip, for example.
Dynamic(MarkerDynamicField)
Dynamic fields have a per-marker value. The ProfilerMarker implementation on the marker type needs to serialize a field on the data JSON object with the matching key.
Trait Implementations§
source§impl Clone for MarkerSchemaField
impl Clone for MarkerSchemaField
source§fn clone(&self) -> MarkerSchemaField
fn clone(&self) -> MarkerSchemaField
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 more