pub struct ApiButton {
pub name: String,
pub tooltip: String,
pub state: String,
pub value: String,
pub actions: Vec<String>,
pub states: Vec<String>,
}Expand description
Represents a button in the vehicle and its current state.
Fields§
§name: StringButton name.
tooltip: StringTooltip text for the button.
state: StringCurrent state of the button (e.g. “on”, “off”, “Drive”, “Neutral”).
value: StringNumeric value as string, if applicable.
actions: Vec<String>Possible actions for this button.
states: Vec<String>Possible states for this button.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ApiButton
impl<'de> Deserialize<'de> for ApiButton
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 ApiButton
Auto Trait Implementations§
impl Freeze for ApiButton
impl RefUnwindSafe for ApiButton
impl Send for ApiButton
impl Sync for ApiButton
impl Unpin for ApiButton
impl UnsafeUnpin for ApiButton
impl UnwindSafe for ApiButton
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