pub struct QueryResult {
pub entry: Entry,
pub docs: Vec<Arc<Document>>,
pub source: NodeInfo,
pub useful: Box<dyn UsefulReport>,
pub fork_spawner: Box<dyn ForkSpawner>,
}
Expand description
An entry returned from a query.
Fields§
§entry: Entry
The entry itself.
docs: Vec<Arc<Document>>
Any associated documents needed to verify the entry
source: NodeInfo
The source node this result came from
useful: Box<dyn UsefulReport>
Optional return to indicate how useful this result was to the query maker. Completing this can help the network eliminate poorly behaved or unhelpful nodes.
fork_spawner: Box<dyn ForkSpawner>
Use to fork a cursor into one of the linked documents - either the attached ones or any of the other ones referred to by hash in the Entry.
Auto Trait Implementations§
impl Freeze for QueryResult
impl !RefUnwindSafe for QueryResult
impl !Send for QueryResult
impl !Sync for QueryResult
impl Unpin for QueryResult
impl !UnwindSafe for QueryResult
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