pub struct IndicatorDescriptor {
pub id: &'static str,
pub display_name: &'static str,
pub category: IndicatorCategory,
pub params: Vec<ParamSpec>,
}Expand description
Machine-readable description of one indicator, for UI auto-discovery.
This is the JSON payload the janus catalog API emits. Example (RSI):
{
"id": "rsi",
"display_name": "RSI",
"category": "Oscillator",
"params": [
{ "name": "period", "kind": "Integer", "default": 14.0, "min": 2.0, "max": 500.0 }
]
}Fields§
§id: &'static strStable identifier — the lowercased name the indicator is registered
under in the runtime registry (e.g. "rsi", "bollingerbands").
display_name: &'static strHuman-readable name for the UI (e.g. "RSI", "Bollinger Bands").
category: IndicatorCategoryWhich chart pane the indicator belongs to.
params: Vec<ParamSpec>The indicator’s tunable parameters, in display order.
Trait Implementations§
Source§impl Clone for IndicatorDescriptor
impl Clone for IndicatorDescriptor
Source§fn clone(&self) -> IndicatorDescriptor
fn clone(&self) -> IndicatorDescriptor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 IndicatorDescriptor
impl Debug for IndicatorDescriptor
Source§impl Deserialize<'static> for IndicatorDescriptor
impl Deserialize<'static> for IndicatorDescriptor
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'static>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'static>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for IndicatorDescriptor
impl PartialEq for IndicatorDescriptor
Source§fn eq(&self, other: &IndicatorDescriptor) -> bool
fn eq(&self, other: &IndicatorDescriptor) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for IndicatorDescriptor
impl Serialize for IndicatorDescriptor
impl StructuralPartialEq for IndicatorDescriptor
Auto Trait Implementations§
impl Freeze for IndicatorDescriptor
impl RefUnwindSafe for IndicatorDescriptor
impl Send for IndicatorDescriptor
impl Sync for IndicatorDescriptor
impl Unpin for IndicatorDescriptor
impl UnsafeUnpin for IndicatorDescriptor
impl UnwindSafe for IndicatorDescriptor
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