pub struct RuntimeSignal {
pub signal_id: String,
pub signal_type: RuntimeSignalType,
pub content: String,
pub confidence: f32,
pub location: Option<String>,
pub metadata: Value,
}Expand description
A signal extracted from runtime execution
Fields§
§signal_id: StringUnique signal ID
signal_type: RuntimeSignalTypeSignal type
content: StringSignal content/description
confidence: f32Confidence score (0.0 - 1.0)
location: Option<String>Source location (file:line)
metadata: ValueAdditional metadata
Implementations§
Source§impl RuntimeSignal
impl RuntimeSignal
Sourcepub fn new(
signal_type: RuntimeSignalType,
content: String,
confidence: f32,
) -> Self
pub fn new( signal_type: RuntimeSignalType, content: String, confidence: f32, ) -> Self
Create a new runtime signal
Sourcepub fn with_location(self, location: String) -> Self
pub fn with_location(self, location: String) -> Self
Create with location
Sourcepub fn with_metadata(self, metadata: Value) -> Self
pub fn with_metadata(self, metadata: Value) -> Self
Create with metadata
Trait Implementations§
Source§impl Clone for RuntimeSignal
impl Clone for RuntimeSignal
Source§fn clone(&self) -> RuntimeSignal
fn clone(&self) -> RuntimeSignal
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 RuntimeSignal
impl Debug for RuntimeSignal
Source§impl<'de> Deserialize<'de> for RuntimeSignal
impl<'de> Deserialize<'de> for RuntimeSignal
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 RuntimeSignal
impl PartialEq for RuntimeSignal
Source§impl Serialize for RuntimeSignal
impl Serialize for RuntimeSignal
impl StructuralPartialEq for RuntimeSignal
Auto Trait Implementations§
impl Freeze for RuntimeSignal
impl RefUnwindSafe for RuntimeSignal
impl Send for RuntimeSignal
impl Sync for RuntimeSignal
impl Unpin for RuntimeSignal
impl UnsafeUnpin for RuntimeSignal
impl UnwindSafe for RuntimeSignal
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