@@ -23,7 +23,7 @@ impl IntoQryResult for Result<response::PromqlResult, error::Error> {
...
@@ -23,7 +23,7 @@ impl IntoQryResult for Result<response::PromqlResult, error::Error> {
}
}
}
}
/// A wrapper for possible result types of expression queries ([`Client::query`](crate::Client::query) and [`Client::query_range`](crate::Client::query_range)).
/// A wrapper for possible result types of expression queries
#[derive(Clone,Debug,EnumAsInner)]
#[derive(Clone,Debug,EnumAsInner)]
pubenumData{
pubenumData{
Vector(Vec<response::InstantVector>),
Vector(Vec<response::InstantVector>),
...
@@ -43,7 +43,7 @@ impl From<response::PromqlResult> for Data {
...
@@ -43,7 +43,7 @@ impl From<response::PromqlResult> for Data {
}
}
implData{
implData{
/// This is a shortcut to check if the query returned any data at all regardless of the exact type.
/// A shortcut to check if the query returned any data at all regardless of the exact type.
pubfnis_empty(&self)->bool{
pubfnis_empty(&self)->bool{
matchself{
matchself{
Data::Vector(v)=>v.is_empty(),
Data::Vector(v)=>v.is_empty(),
...
@@ -205,8 +205,7 @@ impl fmt::Display for PrometheusErrorType {
...
@@ -205,8 +205,7 @@ impl fmt::Display for PrometheusErrorType {
}
}
}
}
/// Is thrown when the [`Client`](crate::Client) or the underlying
/// Is thrown when the [`reqwest::Error`] fails to build or execute a request.
/// [`reqwest::Error`] fail to build or execute a request.