pub struct TriggerMatch {
pub trigger_id: String,
pub score: f32,
pub event_id: String,
pub timestamp: f64,
pub action_executed: bool,
pub execution_result: Option<String>,
}Expand description
Result of a trigger match
Fields§
§trigger_id: StringThe trigger that matched
score: f32Similarity score
event_id: StringThe event that caused the match
timestamp: f64Timestamp of the match
action_executed: boolWhether the action was executed
execution_result: Option<String>Execution result or error
Trait Implementations§
Source§impl Clone for TriggerMatch
impl Clone for TriggerMatch
Source§fn clone(&self) -> TriggerMatch
fn clone(&self) -> TriggerMatch
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 TriggerMatch
impl RefUnwindSafe for TriggerMatch
impl Send for TriggerMatch
impl Sync for TriggerMatch
impl Unpin for TriggerMatch
impl UnwindSafe for TriggerMatch
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,
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