pub struct IntentGraph {
pub extension_id: String,
pub signals: Vec<IntentSignal>,
}Expand description
Normalized intent graph for a single extension.
Captures every registration and capability declaration the extension makes, providing a complete picture of what the extension intends to do. Used by the confidence scoring model to decide whether automated repair is safe.
Fields§
§extension_id: StringExtension identity.
signals: Vec<IntentSignal>All extracted intent signals (deduplicated).
Implementations§
Source§impl IntentGraph
impl IntentGraph
Sourcepub fn from_register_payload(
extension_id: &str,
payload: &Value,
capabilities: &[String],
) -> Self
pub fn from_register_payload( extension_id: &str, payload: &Value, capabilities: &[String], ) -> Self
Build an intent graph from a RegisterPayload and capability list.
Sourcepub fn signals_by_category(&self, category: &str) -> Vec<&IntentSignal>
pub fn signals_by_category(&self, category: &str) -> Vec<&IntentSignal>
Return signals of a specific category.
Sourcepub fn category_count(&self) -> usize
pub fn category_count(&self) -> usize
Number of distinct signal categories present.
Sourcepub fn signal_count(&self) -> usize
pub fn signal_count(&self) -> usize
Total number of signals.
Trait Implementations§
Source§impl Clone for IntentGraph
impl Clone for IntentGraph
Source§fn clone(&self) -> IntentGraph
fn clone(&self) -> IntentGraph
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 IntentGraph
impl Debug for IntentGraph
Source§impl Default for IntentGraph
impl Default for IntentGraph
Source§fn default() -> IntentGraph
fn default() -> IntentGraph
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for IntentGraph
impl RefUnwindSafe for IntentGraph
impl Send for IntentGraph
impl Sync for IntentGraph
impl Unpin for IntentGraph
impl UnsafeUnpin for IntentGraph
impl UnwindSafe for IntentGraph
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().