pub struct RegistrySuggestFromSamplesResponse {
pub proposed_rules: Vec<RuleDefinition>,
pub confidence: String,
pub next_steps: Vec<String>,
pub explanation: String,
}Expand description
registry_suggest_from_samples response (US2 / FR-007).
proposed_rules are DRAFT RuleDefinitions. They are NOT active
and NOT persisted: the caller must run the explicit
registry_test -> registry_upsert -> registry_activate loop
named in next_steps.
Fields§
§proposed_rules: Vec<RuleDefinition>Candidate DRAFT rules. May be empty for low-signal input.
confidence: StringAlways "heuristic". The suggestions are deterministic
line-shape heuristics, never an ML score.
next_steps: Vec<String>The explicit, ordered activation loop the caller MUST follow to make any proposal live. Constant by design.
explanation: StringHuman-readable explanation of what was (or was not) detected. For empty/low-signal input this explains why no rule was proposed instead of fabricating one.
Trait Implementations§
Source§impl Clone for RegistrySuggestFromSamplesResponse
impl Clone for RegistrySuggestFromSamplesResponse
Source§fn clone(&self) -> RegistrySuggestFromSamplesResponse
fn clone(&self) -> RegistrySuggestFromSamplesResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de> Deserialize<'de> for RegistrySuggestFromSamplesResponse
impl<'de> Deserialize<'de> for RegistrySuggestFromSamplesResponse
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
Auto Trait Implementations§
impl Freeze for RegistrySuggestFromSamplesResponse
impl RefUnwindSafe for RegistrySuggestFromSamplesResponse
impl Send for RegistrySuggestFromSamplesResponse
impl Sync for RegistrySuggestFromSamplesResponse
impl Unpin for RegistrySuggestFromSamplesResponse
impl UnsafeUnpin for RegistrySuggestFromSamplesResponse
impl UnwindSafe for RegistrySuggestFromSamplesResponse
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