pub struct Timer {
pub diagnostic_label: Option<String>,
pub duration: Duration,
pub id: Id,
}Expand description
Timer
JSON schema
{
"$id": "https://raw.githubusercontent.com/flexiblepower/s2-ws-json/main/s2-json-schema/schemas/Timer",
"title": "Timer",
"required": [
"duration",
"id"
],
"properties": {
"diagnostic_label": {
"description": "Human readable name/description of the Timer. This element is only intended for diagnostic purposes and not for HMI applications.",
"type": "string"
},
"duration": {
"description": "The time it takes for the Timer to finish after it has been started",
"$ref": "#/$defs/Duration"
},
"id": {
"description": "ID of the Timer. Must be unique in the scope of the OMBC.SystemDescription, FRBC.ActuatorDescription or DDBC.ActuatorDescription in which it is used.",
"$ref": "#/$defs/ID"
}
},
"additionalProperties": false,
"$schema": "https://json-schema.org/draft/2020-12/schema"
}Fields§
§diagnostic_label: Option<String>Human readable name/description of the Timer. This element is only intended for diagnostic purposes and not for HMI applications.
duration: DurationThe time it takes for the Timer to finish after it has been started
id: IdID of the Timer. Must be unique in the scope of the OMBC.SystemDescription, FRBC.ActuatorDescription or DDBC.ActuatorDescription in which it is used.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Timer
impl<'de> Deserialize<'de> for Timer
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
impl StructuralPartialEq for Timer
Auto Trait Implementations§
impl Forget for Timer
impl Freeze for Timer
impl RefUnwindSafe for Timer
impl Send for Timer
impl Sync for Timer
impl Unpin for Timer
impl UnsafeUnpin for Timer
impl UnwindSafe for Timer
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