pub struct OpenCodeJson;Expand description
The mcp.<name> entry of an OpenCode config file (see the module
docs).
Trait Implementations§
Source§impl Debug for OpenCodeJson
impl Debug for OpenCodeJson
Source§impl EntryMapper for OpenCodeJson
impl EntryMapper for OpenCodeJson
fn to_native( &self, server: &RenderedServer, cx: &WriteCx<'_>, ) -> Result<NativeValue, MapError>
Source§fn from_native(
&self,
key: &str,
value: &NativeValue,
) -> Result<ServerDef, MapError>
fn from_native( &self, key: &str, value: &NativeValue, ) -> Result<ServerDef, MapError>
Reads the entry
key back. Named as in SPEC 7.1, hence the lint.Source§fn canonical(&self, value: &NativeValue) -> Canonical
fn canonical(&self, value: &NativeValue) -> Canonical
Sorted, client defaults dropped; used for equality and hashing.
Source§fn skipped_by_client(&self, value: &NativeValue) -> Option<&'static str>
fn skipped_by_client(&self, value: &NativeValue) -> Option<&'static str>
Why the client itself does not load this entry, when it does not
(gate V1 CC-5: Claude Code skips a
url entry without type). Such
an entry still reads back, so import can take it, but importing it
starts a server the client never ran.Auto Trait Implementations§
impl Forget for OpenCodeJson
impl Freeze for OpenCodeJson
impl Move for OpenCodeJson
impl RefUnwindSafe for OpenCodeJson
impl Send for OpenCodeJson
impl Sync for OpenCodeJson
impl Unpin for OpenCodeJson
impl UnsafeUnpin for OpenCodeJson
impl UnwindSafe for OpenCodeJson
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