pub struct Evaluation {
pub coin: Option<String>,
pub price: Option<f64>,
pub consensus: Option<i64>,
pub conviction: Option<f64>,
pub direction: Option<String>,
pub regime: Option<String>,
pub layers: Vec<EvaluationLayer>,
pub data_fresh: Option<bool>,
pub timestamp: Option<String>,
pub extra: BTreeMap<String, Value>,
}Expand description
GET /evaluate/{coin} — the gate-level verdict for a single
coin. The real engine returns a flat object with per-layer
decisions (see tests/fixtures/evaluate_sol.json); this struct
mirrors that exactly.
Legacy fields (verdict, rationale, gates, as_of) were
removed — they were artifacts of a mock that never matched the
engine. Call sites should read the real fields below and derive
a verdict from direction + conviction when they need a
single-word summary.
Fields§
§coin: Option<String>§price: Option<f64>§consensus: Option<i64>§conviction: Option<f64>§direction: Option<String>"LONG" | "SHORT" | "NONE".
regime: Option<String>§layers: Vec<EvaluationLayer>§data_fresh: Option<bool>§timestamp: Option<String>§extra: BTreeMap<String, Value>Implementations§
Source§impl Evaluation
impl Evaluation
Trait Implementations§
Source§impl Clone for Evaluation
impl Clone for Evaluation
Source§fn clone(&self) -> Evaluation
fn clone(&self) -> Evaluation
Returns a duplicate 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 Evaluation
impl Debug for Evaluation
Source§impl Default for Evaluation
impl Default for Evaluation
Source§fn default() -> Evaluation
fn default() -> Evaluation
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Evaluationwhere
Evaluation: Default,
impl<'de> Deserialize<'de> for Evaluationwhere
Evaluation: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for Evaluation
impl PartialEq for Evaluation
Source§impl Serialize for Evaluation
impl Serialize for Evaluation
impl StructuralPartialEq for Evaluation
Auto Trait Implementations§
impl Freeze for Evaluation
impl RefUnwindSafe for Evaluation
impl Send for Evaluation
impl Sync for Evaluation
impl Unpin for Evaluation
impl UnsafeUnpin for Evaluation
impl UnwindSafe for Evaluation
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