pub struct PowerProfileDefinition {
pub message_id: Id,
pub id: Id,
pub start_time: Timestamp,
pub end_time: Timestamp,
pub power_sequence_containers: Vec<PowerSequenceContainer>,
}Expand description
The task, its window, and every way of performing it.
Fields§
§message_id: IdThis message’s identifier.
id: IdThe profile’s own identifier, which every instruction refers back to.
start_time: TimestampThe earliest the first sequence may start.
end_time: TimestampThe latest the last sequence must be finished.
power_sequence_containers: Vec<PowerSequenceContainer>The containers, in chronological order.
The wire name is plural in an unusual place — power_sequences_containers — and
the Rust field does not inherit that.
Implementations§
Source§impl PowerProfileDefinition
impl PowerProfileDefinition
Sourcepub fn builder() -> PowerProfileDefinitionBuilder
pub fn builder() -> PowerProfileDefinitionBuilder
Create an instance of PowerProfileDefinition using the builder syntax
Source§impl PowerProfileDefinition
impl PowerProfileDefinition
Sourcepub fn container(&self, id: &Id) -> Option<&PowerSequenceContainer>
pub fn container(&self, id: &Id) -> Option<&PowerSequenceContainer>
The container with this id, if the profile has one.
Sourcepub fn resolve(
&self,
container_id: &Id,
sequence_id: &Id,
) -> Option<(&PowerSequenceContainer, &PowerSequence)>
pub fn resolve( &self, container_id: &Id, sequence_id: &Id, ) -> Option<(&PowerSequenceContainer, &PowerSequence)>
Resolve a container and a sequence together, as every instruction must.
Trait Implementations§
Source§impl Clone for PowerProfileDefinition
impl Clone for PowerProfileDefinition
Source§fn clone(&self) -> PowerProfileDefinition
fn clone(&self) -> PowerProfileDefinition
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PowerProfileDefinition
impl Debug for PowerProfileDefinition
Source§impl<'de> Deserialize<'de> for PowerProfileDefinition
impl<'de> Deserialize<'de> for PowerProfileDefinition
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 From<PowerProfileDefinition> for Message
impl From<PowerProfileDefinition> for Message
Source§fn from(value: PowerProfileDefinition) -> Self
fn from(value: PowerProfileDefinition) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PowerProfileDefinition
impl PartialEq for PowerProfileDefinition
Source§impl Serialize for PowerProfileDefinition
impl Serialize for PowerProfileDefinition
impl StructuralPartialEq for PowerProfileDefinition
Auto Trait Implementations§
impl Freeze for PowerProfileDefinition
impl RefUnwindSafe for PowerProfileDefinition
impl Send for PowerProfileDefinition
impl Sync for PowerProfileDefinition
impl Unpin for PowerProfileDefinition
impl UnsafeUnpin for PowerProfileDefinition
impl UnwindSafe for PowerProfileDefinition
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