pub struct FetchMetadata {
pub refreshed_at: SystemTime,
pub cache_hits: Vec<String>,
pub cache_misses: Vec<String>,
pub per_source: HashMap<String, HashMap<String, Value>>,
}Expand description
Per-fetch telemetry. per_source stays empty in phase 2 (no provider
dispatch yet); phase 3 populates it from FetchResult.metadata per
declared source.
Fields§
§refreshed_at: SystemTime§cache_hits: Vec<String>Source names served from cache. Empty in phase 2 (no resolver yet).
cache_misses: Vec<String>Source names that produced a fresh fetch. Empty in phase 2 (no resolver yet).
per_source: HashMap<String, HashMap<String, Value>>Per-source provider metadata (e.g. bytes_billed, rows_returned).
Empty in phase 2 — populated once providers exist.
Implementations§
Source§impl FetchMetadata
impl FetchMetadata
Trait Implementations§
Source§impl Clone for FetchMetadata
impl Clone for FetchMetadata
Source§fn clone(&self) -> FetchMetadata
fn clone(&self) -> FetchMetadata
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 FetchMetadata
impl RefUnwindSafe for FetchMetadata
impl Send for FetchMetadata
impl Sync for FetchMetadata
impl Unpin for FetchMetadata
impl UnsafeUnpin for FetchMetadata
impl UnwindSafe for FetchMetadata
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