pub struct GeneratedCommand {
pub command: String,
pub explanation: String,
pub safety_level: RiskLevel,
pub estimated_impact: String,
pub alternatives: Vec<String>,
pub backend_used: String,
pub generation_time_ms: u64,
pub confidence_score: f64,
}Expand description
Response from command generation with metadata
Fields§
§command: StringThe generated shell command
explanation: StringHuman-readable explanation of what the command does
safety_level: RiskLevelAssessed risk level of the command
estimated_impact: StringDescription of estimated impact
alternatives: Vec<String>Alternative commands that could achieve similar results
backend_used: StringName of the backend that generated this command
generation_time_ms: u64Time taken to generate the command in milliseconds
confidence_score: f64Confidence score (0.0 to 1.0)
Implementations§
Trait Implementations§
Source§impl Clone for GeneratedCommand
impl Clone for GeneratedCommand
Source§fn clone(&self) -> GeneratedCommand
fn clone(&self) -> GeneratedCommand
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GeneratedCommand
impl Debug for GeneratedCommand
Source§impl<'de> Deserialize<'de> for GeneratedCommand
impl<'de> Deserialize<'de> for GeneratedCommand
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 Display for GeneratedCommand
impl Display for GeneratedCommand
Auto Trait Implementations§
impl Freeze for GeneratedCommand
impl RefUnwindSafe for GeneratedCommand
impl Send for GeneratedCommand
impl Sync for GeneratedCommand
impl Unpin for GeneratedCommand
impl UnwindSafe for GeneratedCommand
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)