Struct grafana_plugin_sdk::data::Metadata
source · #[non_exhaustive]pub struct Metadata {
pub path: Option<String>,
pub path_separator: Option<String>,
pub custom: Option<Map<String, Value>>,
pub stats: Option<Vec<QueryStat>>,
pub notices: Option<Vec<Notice>>,
pub channel: Option<Channel>,
pub preferred_visualisation: Option<VisType>,
pub executed_query_string: Option<String>,
}
Expand description
Metadata about a Frame
.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.path: Option<String>
A browsable path on the datasource.
path_separator: Option<String>
Defines the separator pattern to decode a hierarchy. The default separator is ‘/’.
custom: Option<Map<String, Value>>
Custom datasource specific values.
stats: Option<Vec<QueryStat>>
Query result statistics.
notices: Option<Vec<Notice>>
Additional information about the data in the frame that Grafana can display in the UI.
channel: Option<Channel>
Path to a stream in Grafana Live that has real-time updates for this data.
preferred_visualisation: Option<VisType>
The preferred visualisation option when used in Grafana’s Explore mode.
executed_query_string: Option<String>
The raw query sent to the underlying system after all macros and templating have been applied.
This will be shown in the query inspector if present.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Metadata
impl<'de> Deserialize<'de> for Metadata
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
source§impl PartialEq for Metadata
impl PartialEq for Metadata
impl StructuralPartialEq for Metadata
Auto Trait Implementations§
impl RefUnwindSafe for Metadata
impl Send for Metadata
impl Sync for Metadata
impl Unpin for Metadata
impl UnwindSafe for Metadata
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request