pub struct CommandSearchResult {
pub api_context: String,
pub command: CachedCommand,
pub command_path: String,
pub score: i64,
pub highlights: Vec<String>,
}Expand description
Search result for a command
Fields§
§api_context: StringThe API context name
command: CachedCommandThe matching command
command_path: StringThe command path (e.g., “users get-user”)
score: i64The relevance score (higher is better)
highlights: Vec<String>Match highlights
Trait Implementations§
Source§impl Clone for CommandSearchResult
impl Clone for CommandSearchResult
Source§fn clone(&self) -> CommandSearchResult
fn clone(&self) -> CommandSearchResult
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 moreAuto Trait Implementations§
impl Freeze for CommandSearchResult
impl RefUnwindSafe for CommandSearchResult
impl Send for CommandSearchResult
impl Sync for CommandSearchResult
impl Unpin for CommandSearchResult
impl UnwindSafe for CommandSearchResult
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