pub struct ConfigurationFile {
pub interface: Option<String>,
pub includes: Vec<String>,
pub provides: HashMap<String, String>,
pub requires: HashMap<String, String>,
pub pins: Vec<PinConfiguration>,
pub strappings: Vec<StrappingConfiguration>,
pub spi: Vec<SpiConfiguration>,
pub i2c: Vec<I2cConfiguration>,
pub uarts: Vec<UartConfiguration>,
pub io_expanders: Vec<IoExpander>,
}
Expand description
Representation of the complete and unresolved content of a single confguration file.
Fields§
§interface: Option<String>
Optional specification of transport backend, for which this configuration applies (to be implemented).
includes: Vec<String>
List of names of other configuration files to include recursively.
provides: HashMap<String, String>
List of user-defined features “provided” by the testing setup using this file.
requires: HashMap<String, String>
List of user-defined features which must be “provided” by the testing setup (through other configuration files), in order for it to make sense to use this file.
pins: Vec<PinConfiguration>
List of GPIO pin configurations.
strappings: Vec<StrappingConfiguration>
List of named sets of additional GPIO pin configurations (pullup/pulldown).
spi: Vec<SpiConfiguration>
List of SPI port configurations.
i2c: Vec<I2cConfiguration>
List of I2C port configurations.
uarts: Vec<UartConfiguration>
List of UART port configurations.
io_expanders: Vec<IoExpander>
List of IO expander chips.
Trait Implementations§
Source§impl Clone for ConfigurationFile
impl Clone for ConfigurationFile
Source§fn clone(&self) -> ConfigurationFile
fn clone(&self) -> ConfigurationFile
Returns a copy 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 ConfigurationFile
impl Debug for ConfigurationFile
Source§impl<'de> Deserialize<'de> for ConfigurationFile
impl<'de> Deserialize<'de> for ConfigurationFile
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 ConfigurationFile
impl RefUnwindSafe for ConfigurationFile
impl Send for ConfigurationFile
impl Sync for ConfigurationFile
impl Unpin for ConfigurationFile
impl UnwindSafe for ConfigurationFile
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