pub struct ResolutionStatus {
pub success: bool,
pub resolved_path: Option<String>,
pub attempts: Vec<ResolutionAttempt>,
pub warnings: Vec<String>,
pub error_message: Option<String>,
pub suggested_fix: Option<String>,
}Expand description
Result of executable path resolution for a server.
This is the contract between backend (Rust) and frontend (TypeScript/Axum clients). All fields are String-based to ensure clean JSON serialization.
Fields§
§success: boolWhether resolution succeeded.
resolved_path: Option<String>The resolved absolute path (if successful).
attempts: Vec<ResolutionAttempt>All attempts made during resolution (for diagnostics).
warnings: Vec<String>Non-fatal warnings.
error_message: Option<String>Error message (if resolution failed).
suggested_fix: Option<String>Suggested command to run to find the executable (e.g., “command -v npx”).
Implementations§
Source§impl ResolutionStatus
impl ResolutionStatus
Sourcepub fn error_message_with_suggestions(&self) -> String
pub fn error_message_with_suggestions(&self) -> String
Get a user-friendly error message with suggestions.
Trait Implementations§
Source§impl Clone for ResolutionStatus
impl Clone for ResolutionStatus
Source§fn clone(&self) -> ResolutionStatus
fn clone(&self) -> ResolutionStatus
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 ResolutionStatus
impl Debug for ResolutionStatus
Source§impl<'de> Deserialize<'de> for ResolutionStatus
impl<'de> Deserialize<'de> for ResolutionStatus
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 ResolutionStatus
impl RefUnwindSafe for ResolutionStatus
impl Send for ResolutionStatus
impl Sync for ResolutionStatus
impl Unpin for ResolutionStatus
impl UnwindSafe for ResolutionStatus
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