pub struct DecodedSignalDto {
pub timestamp: f64,
pub message_name: String,
pub signal_name: String,
pub value: f64,
pub raw_value: i64,
pub unit: String,
pub description: Option<String>,
}Expand description
Serializable decoded signal for frontend communication.
Fields§
§timestamp: f64§message_name: String§signal_name: String§value: f64§raw_value: i64§unit: String§description: Option<String>Implementations§
Source§impl DecodedSignalDto
impl DecodedSignalDto
Sourcepub fn from_dbc_signal(
sig: &DecodedSignal<'_>,
timestamp: f64,
message_name: &str,
) -> Self
pub fn from_dbc_signal( sig: &DecodedSignal<'_>, timestamp: f64, message_name: &str, ) -> Self
Convert from dbc_rs::DecodedSignal, adding timestamp and message name.
Trait Implementations§
Source§impl Clone for DecodedSignalDto
impl Clone for DecodedSignalDto
Source§fn clone(&self) -> DecodedSignalDto
fn clone(&self) -> DecodedSignalDto
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 DecodedSignalDto
impl Debug for DecodedSignalDto
Source§impl<'de> Deserialize<'de> for DecodedSignalDto
impl<'de> Deserialize<'de> for DecodedSignalDto
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
Auto Trait Implementations§
impl Freeze for DecodedSignalDto
impl RefUnwindSafe for DecodedSignalDto
impl Send for DecodedSignalDto
impl Sync for DecodedSignalDto
impl Unpin for DecodedSignalDto
impl UnwindSafe for DecodedSignalDto
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<'de, D, R> CommandArg<'de, R> for Dwhere
D: Deserialize<'de>,
R: Runtime,
impl<'de, D, R> CommandArg<'de, R> for Dwhere
D: Deserialize<'de>,
R: Runtime,
Source§fn from_command(command: CommandItem<'de, R>) -> Result<D, InvokeError>
fn from_command(command: CommandItem<'de, R>) -> Result<D, InvokeError>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more