pub struct PrometheusResponse {
pub status: String,
pub error: Option<String>,
pub error_type: Option<String>,
pub data: Option<PrometheusData>,
}Expand description
Prometheus API response wrapper for query endpoints.
Fields§
§status: String§error: Option<String>§error_type: Option<String>§data: Option<PrometheusData>Trait Implementations§
Source§impl Debug for PrometheusResponse
impl Debug for PrometheusResponse
Source§impl<'de> Deserialize<'de> for PrometheusResponse
impl<'de> Deserialize<'de> for PrometheusResponse
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 PrometheusResponse
impl RefUnwindSafe for PrometheusResponse
impl Send for PrometheusResponse
impl Sync for PrometheusResponse
impl Unpin for PrometheusResponse
impl UnsafeUnpin for PrometheusResponse
impl UnwindSafe for PrometheusResponse
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