pub struct PromptSearchResult {
pub session_id: String,
pub cwd: PathBuf,
pub session_created_at: String,
pub prompt: String,
pub match_start: usize,
pub match_end: usize,
}Expand description
A single prompt-history search hit.
match_start and match_end are UTF-8 byte offsets into prompt and are
guaranteed to fall on char boundaries.
Fields§
§session_id: String§cwd: PathBuf§session_created_at: String§prompt: String§match_start: usize§match_end: usizeTrait Implementations§
Source§impl Clone for PromptSearchResult
impl Clone for PromptSearchResult
Source§fn clone(&self) -> PromptSearchResult
fn clone(&self) -> PromptSearchResult
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 Debug for PromptSearchResult
impl Debug for PromptSearchResult
Source§impl<'de> Deserialize<'de> for PromptSearchResult
impl<'de> Deserialize<'de> for PromptSearchResult
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 PartialEq for PromptSearchResult
impl PartialEq for PromptSearchResult
Source§fn eq(&self, other: &PromptSearchResult) -> bool
fn eq(&self, other: &PromptSearchResult) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PromptSearchResult
impl Serialize for PromptSearchResult
impl Eq for PromptSearchResult
impl StructuralPartialEq for PromptSearchResult
Auto Trait Implementations§
impl Freeze for PromptSearchResult
impl RefUnwindSafe for PromptSearchResult
impl Send for PromptSearchResult
impl Sync for PromptSearchResult
impl Unpin for PromptSearchResult
impl UnsafeUnpin for PromptSearchResult
impl UnwindSafe for PromptSearchResult
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.