pub struct QueryMetadata {
pub provider: String,
pub provider_type: Option<String>,
pub query_language: Option<String>,
pub query: Option<String>,
pub time_range: Option<TimeRange>,
pub total_count: usize,
pub returned_series: Option<usize>,
pub is_complete: Option<bool>,
pub cursor: Option<String>,
}Expand description
Query metadata included in success responses.
Agent View includes only provider and total_count.
Full View additionally includes provider_type, query_language,
query, time_range, and is_complete.
Fields§
§provider: StringContext name (user-configured), e.g., “dev-vm”.
provider_type: Option<String>Provider type identifier (Full View only).
query_language: Option<String>Query language used (Full View only).
query: Option<String>Original query expression (Full View only).
time_range: Option<TimeRange>Query time range (Full View only).
total_count: usizeTotal number of items returned by backend.
returned_series: Option<usize>Number of items after view truncation.
is_complete: Option<bool>Whether data is complete (Full View only).
Providers set this to false when more results exist beyond the
returned set (e.g., incomplete progress, cursor-based pagination).
cursor: Option<String>Pagination cursor for next page (Full View only).
Trait Implementations§
Source§impl Clone for QueryMetadata
impl Clone for QueryMetadata
Source§fn clone(&self) -> QueryMetadata
fn clone(&self) -> QueryMetadata
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 QueryMetadata
impl Debug for QueryMetadata
Source§impl<'de> Deserialize<'de> for QueryMetadata
impl<'de> Deserialize<'de> for QueryMetadata
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
Auto Trait Implementations§
impl Freeze for QueryMetadata
impl RefUnwindSafe for QueryMetadata
impl Send for QueryMetadata
impl Sync for QueryMetadata
impl Unpin for QueryMetadata
impl UnsafeUnpin for QueryMetadata
impl UnwindSafe for QueryMetadata
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