pub enum ConfigPatch {
Enabled(bool),
Exposure(McpExposure),
}Expand description
pi’s McpServerConfigPatch: a setting /mcp changes.
Variants§
Implementations§
Source§impl ConfigPatch
impl ConfigPatch
Sourcepub fn apply(self, config: &mut ServerConfig)
pub fn apply(self, config: &mut ServerConfig)
Applies the patch to a loaded config.
Trait Implementations§
Source§impl Clone for ConfigPatch
impl Clone for ConfigPatch
impl Copy for ConfigPatch
Source§impl Debug for ConfigPatch
impl Debug for ConfigPatch
impl Eq for ConfigPatch
Source§impl PartialEq for ConfigPatch
impl PartialEq for ConfigPatch
impl StructuralPartialEq for ConfigPatch
Auto Trait Implementations§
impl Forget for ConfigPatch
impl Freeze for ConfigPatch
impl RefUnwindSafe for ConfigPatch
impl Send for ConfigPatch
impl Sync for ConfigPatch
impl Unpin for ConfigPatch
impl UnsafeUnpin for ConfigPatch
impl UnwindSafe for ConfigPatch
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.