pub struct EvaluationLayer {
pub layer: String,
pub passed: bool,
pub value: Value,
pub detail: String,
}Expand description
One layer in an /evaluate/{coin} response. The engine emits a
numbered list; each entry includes whether the layer passed, an
arbitrary value payload (scalar or nested object), and a
human-readable detail string that already summarizes the
layer’s decision.
Fields§
§layer: String§passed: bool§value: Value§detail: StringTrait Implementations§
Source§impl Clone for EvaluationLayer
impl Clone for EvaluationLayer
Source§fn clone(&self) -> EvaluationLayer
fn clone(&self) -> EvaluationLayer
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 EvaluationLayer
impl Debug for EvaluationLayer
Source§impl Default for EvaluationLayer
impl Default for EvaluationLayer
Source§fn default() -> EvaluationLayer
fn default() -> EvaluationLayer
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EvaluationLayerwhere
EvaluationLayer: Default,
impl<'de> Deserialize<'de> for EvaluationLayerwhere
EvaluationLayer: 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 EvaluationLayer
impl PartialEq for EvaluationLayer
Source§impl Serialize for EvaluationLayer
impl Serialize for EvaluationLayer
impl StructuralPartialEq for EvaluationLayer
Auto Trait Implementations§
impl Freeze for EvaluationLayer
impl RefUnwindSafe for EvaluationLayer
impl Send for EvaluationLayer
impl Sync for EvaluationLayer
impl Unpin for EvaluationLayer
impl UnsafeUnpin for EvaluationLayer
impl UnwindSafe for EvaluationLayer
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