pub struct TurnVitals {
pub gate: String,
pub phase: String,
pub trust: f32,
}Expand description
Minimal vitals snapshot accepted by this crate (avoids a direct openfang-types dep).
Callers in openfang-runtime construct this from openfang_types::vitals::CognitiveVitals.
Fields§
§gate: StringGate string: “pass” / “warn” / “fail”.
phase: StringPhase string, e.g. “reasoning:0.69”.
trust: f32Trust score in [0, 1].
Trait Implementations§
Source§impl Clone for TurnVitals
impl Clone for TurnVitals
Source§fn clone(&self) -> TurnVitals
fn clone(&self) -> TurnVitals
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 moreAuto Trait Implementations§
impl Freeze for TurnVitals
impl RefUnwindSafe for TurnVitals
impl Send for TurnVitals
impl Sync for TurnVitals
impl Unpin for TurnVitals
impl UnsafeUnpin for TurnVitals
impl UnwindSafe for TurnVitals
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