pub struct ClientPrefs {
pub enabled: Option<bool>,
pub native_disable: Option<bool>,
pub project_shared_target: Option<String>,
pub project_local_target: Option<String>,
pub profiles: Option<Vec<String>>,
pub import_variants: Option<Vec<String>>,
pub import_profiles: Option<ProfileSelection>,
pub extra: Table,
}Expand description
Per-client preferences. Keys a client does not use are ignored by it.
Fields§
§enabled: Option<bool>false opts the client out of everything; true forces it on even
when it is not detected.
native_disable: Option<bool>true: an owned entry that is no longer desired is disabled through
the client’s native mechanism (enabled = false) instead of being
removed, when the client has one (SPEC 8.4).
Where the shared project layer goes (Claude Code: .mcp.json).
project_local_target: Option<String>Where the private project layer goes (Claude Code: local-scope).
profiles: Option<Vec<String>>Named profiles to target (omp).
import_variants: Option<Vec<String>>VS Code variants to import from (vscode-legacy).
import_profiles: Option<ProfileSelection>VS Code profiles to import from (vscode-legacy).
extra: TableKeys this build does not model, kept on rewrite.
Trait Implementations§
Source§impl Clone for ClientPrefs
impl Clone for ClientPrefs
Source§impl Debug for ClientPrefs
impl Debug for ClientPrefs
Source§impl Default for ClientPrefs
impl Default for ClientPrefs
Source§impl<'de> Deserialize<'de> for ClientPrefs
impl<'de> Deserialize<'de> for ClientPrefs
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
Source§impl JsonSchema for ClientPrefs
impl JsonSchema for ClientPrefs
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for ClientPrefs
impl PartialEq for ClientPrefs
Source§impl Serialize for ClientPrefs
impl Serialize for ClientPrefs
impl StructuralPartialEq for ClientPrefs
Auto Trait Implementations§
impl Forget for ClientPrefs
impl Freeze for ClientPrefswhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
impl Move for ClientPrefs
impl RefUnwindSafe for ClientPrefs
impl Send for ClientPrefs
impl Sync for ClientPrefs
impl Unpin for ClientPrefs
impl UnsafeUnpin for ClientPrefswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
impl UnwindSafe for ClientPrefs
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