pub struct ConfigFile {
pub version: String,
pub boards: Vec<BoardConfig>,
pub namespace: Option<String>,
pub default_board: Option<String>,
pub relationships: Option<HashMap<String, RelationshipConfig>>,
pub critical_path: Option<CriticalPathConfig>,
}Expand description
Top-level config file structure.
Fields§
§version: String§boards: Vec<BoardConfig>§namespace: Option<String>§default_board: Option<String>§relationships: Option<HashMap<String, RelationshipConfig>>§critical_path: Option<CriticalPathConfig>Implementations§
Source§impl ConfigFile
impl ConfigFile
Sourcepub fn board(&self, name: &str) -> Result<&BoardConfig>
pub fn board(&self, name: &str) -> Result<&BoardConfig>
Get a board config by name.
Sourcepub fn default_board(&self) -> Result<&BoardConfig>
pub fn default_board(&self) -> Result<&BoardConfig>
Get the default board config.
Trait Implementations§
Source§impl Clone for ConfigFile
impl Clone for ConfigFile
Source§fn clone(&self) -> ConfigFile
fn clone(&self) -> ConfigFile
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 ConfigFile
impl Debug for ConfigFile
Source§impl<'de> Deserialize<'de> for ConfigFile
impl<'de> Deserialize<'de> for ConfigFile
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 ConfigFile
impl RefUnwindSafe for ConfigFile
impl Send for ConfigFile
impl Sync for ConfigFile
impl Unpin for ConfigFile
impl UnsafeUnpin for ConfigFile
impl UnwindSafe for ConfigFile
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