pub enum StructuralEvent {
Achievement,
Error,
Fix,
Challenge,
Building,
Reflection,
Connection,
None,
}Expand description
A structural event detected in text.
Variants§
Achievement
Achievement: commit, build, push, success, milestone
Error
Error: timeout, fail, error, crash, panic
Fix
Fix: resolved, fixed, solved, workaround
Challenge
Challenge: prove it, bizonyítsd, szerintem nem
Building
Building: építed, mehet, csináld, add
Reflection
Reflection: szerintem, azt érzem, érzés
Connection
Connection: personal question, emotional language
None
None detected
Implementations§
Source§impl StructuralEvent
impl StructuralEvent
Sourcepub fn to_pad(&self) -> PadState
pub fn to_pad(&self) -> PadState
Map event to PAD state. These are structural mappings — based on what the event means, not what words it contains.
Sourcepub fn detection_confidence(&self) -> f64
pub fn detection_confidence(&self) -> f64
How confident are we that this event was correctly detected?
Sourcepub fn is_structural(&self) -> bool
pub fn is_structural(&self) -> bool
Is this a structural trigger (vs word-list pattern match)?
Trait Implementations§
Source§impl Clone for StructuralEvent
impl Clone for StructuralEvent
Source§impl Debug for StructuralEvent
impl Debug for StructuralEvent
Source§impl PartialEq for StructuralEvent
impl PartialEq for StructuralEvent
impl StructuralPartialEq for StructuralEvent
Auto Trait Implementations§
impl Freeze for StructuralEvent
impl RefUnwindSafe for StructuralEvent
impl Send for StructuralEvent
impl Sync for StructuralEvent
impl Unpin for StructuralEvent
impl UnsafeUnpin for StructuralEvent
impl UnwindSafe for StructuralEvent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more