Struct Intent Outcome

View as Markdown

Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-ffi.

pub struct IntentOutcome {
    pub intent_id: Uuid,
    pub intent_type: IntentType,
    pub status: TranslationStatus,
    pub reason: ReasonCode,
    pub detail: Option<String>,
}

Records the outcome of translating a single optimization intent.

Fields

intent_id: Uuid

ID of the intent this outcome refers to.

intent_type: IntentType

Type discriminant of the intent.

status: TranslationStatus

What happened to this intent.

reason: ReasonCode

Machine-readable reason for the outcome.

detail: Option<String>

Optional human-readable detail (for debugging, not machine consumption).

Trait Implementations

impl Clone for IntentOutcome

impl Clone for IntentOutcome

clone

fn clone(&self) -> IntentOutcome

clone_from

fn clone_from(&mut self, source: &Self)

impl Debug for IntentOutcome

impl Debug for IntentOutcome

fmt

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl<'de> Deserialize<'de> for IntentOutcome

impl<'de> Deserialize<'de> for IntentOutcome

deserialize

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,

impl PartialEq for IntentOutcome

impl PartialEq for IntentOutcome

eq

fn eq(&self, other: &IntentOutcome) -> bool

ne

fn ne(&self, other: &Rhs) -> bool

impl Serialize for IntentOutcome

impl Serialize for IntentOutcome

serialize

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
    __S: Serializer,

impl Eq for IntentOutcome

impl Eq for IntentOutcome

impl StructuralPartialEq for IntentOutcome

impl StructuralPartialEq for IntentOutcome