pub struct ResolveOutcome {
pub result: FetchResult,
pub cache_hit: bool,
pub batches: Option<FetchBatchResult>,
}Expand description
Outcome of a Resolver::fetch call: the provider’s result PLUS whether
the value came from a cache tier or a fresh provider invocation.
ChartML::fetch uses this to populate FetchMetadata.cache_hits /
cache_misses per source name without needing the resolver to know about
source names itself (which it doesn’t — it works in keys, not names).
Fields§
§result: FetchResult§cache_hit: bool§batches: Option<FetchBatchResult>Original provider batches. Some on cache miss (when the provider
returned via fetch_batches), None on cache hit. Allows the
transform layer to register batches into MemTable without concat.
Trait Implementations§
Source§impl Clone for ResolveOutcome
impl Clone for ResolveOutcome
Source§fn clone(&self) -> ResolveOutcome
fn clone(&self) -> ResolveOutcome
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for ResolveOutcome
impl !UnwindSafe for ResolveOutcome
impl Freeze for ResolveOutcome
impl Send for ResolveOutcome
impl Sync for ResolveOutcome
impl Unpin for ResolveOutcome
impl UnsafeUnpin for ResolveOutcome
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