pub struct RigConfig {
pub rig: RigMeta,
pub target: Option<TargetConfig>,
pub assistants: Vec<AssistantConfig>,
pub instruments: Vec<InstrumentConfig>,
}Fields§
§rig: RigMeta§target: Option<TargetConfig>§assistants: Vec<AssistantConfig>§instruments: Vec<InstrumentConfig>Implementations§
Source§impl RigConfig
impl RigConfig
Sourcepub fn locate() -> Result<Option<PathBuf>>
pub fn locate() -> Result<Option<PathBuf>>
Find the rig config for this machine/checkout. Ok(None) means “no
rig here” (the self-skip signal); Err means a config exists but is
unusable, which is a real failure, not a skip.
pub fn load(path: &Path) -> Result<Self>
pub fn assistant(&self, name: &str) -> Option<&AssistantConfig>
pub fn instrument(&self, name: &str) -> Option<&InstrumentConfig>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RigConfig
impl<'de> Deserialize<'de> for RigConfig
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 RigConfig
impl RefUnwindSafe for RigConfig
impl Send for RigConfig
impl Sync for RigConfig
impl Unpin for RigConfig
impl UnsafeUnpin for RigConfig
impl UnwindSafe for RigConfig
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