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 moresource§impl Debug for MarkerSchemaField
impl Debug for MarkerSchemaField
Auto Trait Implementations§
impl RefUnwindSafe for MarkerSchemaField
impl Send for MarkerSchemaField
impl Sync for MarkerSchemaField
impl Unpin for MarkerSchemaField
impl UnwindSafe for MarkerSchemaField
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