pub struct TemplateInstance {
pub template_ref: String,
pub version: Option<String>,
pub metrics: Vec<TemplateMetric>,
pub parameters: Vec<TemplateParameter>,
}Fields§
§template_ref: String§version: Option<String>§metrics: Vec<TemplateMetric>§parameters: Vec<TemplateParameter>Trait Implementations§
Source§impl Debug for TemplateInstance
impl Debug for TemplateInstance
Source§impl From<TemplateInstance> for MetricValue
impl From<TemplateInstance> for MetricValue
Source§fn from(value: TemplateInstance) -> Self
fn from(value: TemplateInstance) -> Self
Converts to this type from the input type.
Source§impl From<TemplateInstance> for Template
impl From<TemplateInstance> for Template
Source§fn from(value: TemplateInstance) -> Self
fn from(value: TemplateInstance) -> Self
Converts to this type from the input type.
Source§impl HasDataType for TemplateInstance
impl HasDataType for TemplateInstance
Source§fn supported_datatypes() -> &'static [DataType]
fn supported_datatypes() -> &'static [DataType]
Get all the Sparkplug crate::payload::DataType’s the type supports
Source§fn default_datatype() -> DataType
fn default_datatype() -> DataType
Default crate::payload::DataType the type maps to
Source§impl MetricValue for TemplateInstance
impl MetricValue for TemplateInstance
fn birth_metadata(&self) -> Option<MetaData>
fn publish_metadata(&self) -> Option<MetaData>
Source§impl PartialEq for TemplateInstance
impl PartialEq for TemplateInstance
Source§impl TryFrom<MetricValue> for TemplateInstance
impl TryFrom<MetricValue> for TemplateInstance
Source§type Error = FromValueTypeError
type Error = FromValueTypeError
The type returned in the event of a conversion error.
impl StructuralPartialEq for TemplateInstance
Auto Trait Implementations§
impl Freeze for TemplateInstance
impl RefUnwindSafe for TemplateInstance
impl Send for TemplateInstance
impl Sync for TemplateInstance
impl Unpin for TemplateInstance
impl UnwindSafe for TemplateInstance
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