pub struct QueryOutput {
pub query: String,
pub total_matches: usize,
pub results: Vec<QueryResult>,
}Expand description
Output of a query execution.
Fields§
§query: String§total_matches: usize§results: Vec<QueryResult>Implementations§
Source§impl QueryOutput
impl QueryOutput
Sourcepub fn to_markdown(&self) -> String
pub fn to_markdown(&self) -> String
Render results as Markdown (for --format markdown).
Trait Implementations§
Source§impl Clone for QueryOutput
impl Clone for QueryOutput
Source§fn clone(&self) -> QueryOutput
fn clone(&self) -> QueryOutput
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 QueryOutput
impl Debug for QueryOutput
Source§impl Display for QueryOutput
impl Display for QueryOutput
Auto Trait Implementations§
impl Freeze for QueryOutput
impl RefUnwindSafe for QueryOutput
impl Send for QueryOutput
impl Sync for QueryOutput
impl Unpin for QueryOutput
impl UnsafeUnpin for QueryOutput
impl UnwindSafe for QueryOutput
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