Struct robotconfig::types::motor::Motor[][src]

pub struct Motor {
    pub id: u32,
    pub inverted: Option<bool>,
}
Expand description

JSON object for a motor

{
   "id": 0,
   "inverted": false // Default: false
}

Original source: here

Fields

id: u32

Hardware ID of the motor

inverted: Option<bool>

Weather the outputs are inverted

Trait Implementations

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.