pub struct PeripheralsConfig {
pub enabled: bool,
pub boards: Vec<PeripheralBoardConfig>,
pub datasheet_dir: Option<String>,
}Fields§
§enabled: boolEnable peripheral support (boards become agent tools)
boards: Vec<PeripheralBoardConfig>Board configurations (nucleo-f401re, rpi-gpio, etc.)
datasheet_dir: Option<String>Path to datasheet docs (relative to workspace) for RAG retrieval. Place .md/.txt files named by board (e.g. nucleo-f401re.md, rpi-gpio.md).
Trait Implementations§
Source§impl Clone for PeripheralsConfig
impl Clone for PeripheralsConfig
Source§fn clone(&self) -> PeripheralsConfig
fn clone(&self) -> PeripheralsConfig
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 PeripheralsConfig
impl Debug for PeripheralsConfig
Source§impl Default for PeripheralsConfig
impl Default for PeripheralsConfig
Source§fn default() -> PeripheralsConfig
fn default() -> PeripheralsConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PeripheralsConfig
impl<'de> Deserialize<'de> for PeripheralsConfig
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 PeripheralsConfig
impl RefUnwindSafe for PeripheralsConfig
impl Send for PeripheralsConfig
impl Sync for PeripheralsConfig
impl Unpin for PeripheralsConfig
impl UnsafeUnpin for PeripheralsConfig
impl UnwindSafe for PeripheralsConfig
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