pub struct Canon {
pub version: Option<u32>,
pub servers: BTreeMap<String, CanonServer>,
pub plugins: Vec<PluginConfig>,
}Expand description
The top-level canonical configuration structure.
§Example YAML
version: 1
servers:
my-server:
command: npx
args: ["-y", "@modelcontextprotocol/server"]Fields§
§version: Option<u32>Configuration file version (currently unused, for future compatibility).
servers: BTreeMap<String, CanonServer>Map of server name to server configuration.
plugins: Vec<PluginConfig>Plugin configurations (optional).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Canon
impl<'de> Deserialize<'de> for Canon
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 Canon
impl RefUnwindSafe for Canon
impl Send for Canon
impl Sync for Canon
impl Unpin for Canon
impl UnwindSafe for Canon
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