pub struct ParameterSuggestion {
pub original_value: String,
pub suggested_name: String,
pub description: String,
pub category: DetectedCategory,
pub confidence: f64,
}Expand description
A suggestion to replace a detected value with a variable.
Fields§
§original_value: StringThe original literal value found in the text
suggested_name: StringSuggested variable name (e.g. “base_url”, “api_key”)
description: StringHuman-readable description
category: DetectedCategoryThe category of this detection
confidence: f64Confidence score 0.0–1.0
Trait Implementations§
Source§impl Clone for ParameterSuggestion
impl Clone for ParameterSuggestion
Source§fn clone(&self) -> ParameterSuggestion
fn clone(&self) -> ParameterSuggestion
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 moreAuto Trait Implementations§
impl Freeze for ParameterSuggestion
impl RefUnwindSafe for ParameterSuggestion
impl Send for ParameterSuggestion
impl Sync for ParameterSuggestion
impl Unpin for ParameterSuggestion
impl UnsafeUnpin for ParameterSuggestion
impl UnwindSafe for ParameterSuggestion
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