pub struct TemplateDefinition {
pub version: Option<String>,
pub metrics: Vec<TemplateMetric>,
pub parameters: Vec<TemplateParameter>,
}Fields§
§version: Option<String>§metrics: Vec<TemplateMetric>§parameters: Vec<TemplateParameter>Trait Implementations§
Source§impl Clone for TemplateDefinition
impl Clone for TemplateDefinition
Source§fn clone(&self) -> TemplateDefinition
fn clone(&self) -> TemplateDefinition
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 TemplateDefinition
impl Debug for TemplateDefinition
Source§impl From<TemplateDefinition> for MetricValue
impl From<TemplateDefinition> for MetricValue
Source§fn from(value: TemplateDefinition) -> Self
fn from(value: TemplateDefinition) -> Self
Converts to this type from the input type.
Source§impl From<TemplateDefinition> for Template
impl From<TemplateDefinition> for Template
Source§fn from(value: TemplateDefinition) -> Self
fn from(value: TemplateDefinition) -> Self
Converts to this type from the input type.
Source§impl HasDataType for TemplateDefinition
impl HasDataType for TemplateDefinition
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 TemplateDefinition
impl MetricValue for TemplateDefinition
fn birth_metadata(&self) -> Option<MetaData>
fn publish_metadata(&self) -> Option<MetaData>
Source§impl PartialEq for TemplateDefinition
impl PartialEq for TemplateDefinition
Source§impl TryFrom<MetricValue> for TemplateDefinition
impl TryFrom<MetricValue> for TemplateDefinition
Source§type Error = FromValueTypeError
type Error = FromValueTypeError
The type returned in the event of a conversion error.
impl StructuralPartialEq for TemplateDefinition
Auto Trait Implementations§
impl Freeze for TemplateDefinition
impl RefUnwindSafe for TemplateDefinition
impl Send for TemplateDefinition
impl Sync for TemplateDefinition
impl Unpin for TemplateDefinition
impl UnwindSafe for TemplateDefinition
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