pub struct ServerDef {
pub fields: ServerFields,
pub headers_helper: Option<String>,
pub disabled: bool,
pub tools: ToolLists,
pub passthrough: NativeMap,
pub unmapped: NativeMap,
}Expand description
A native entry read back as a server definition (import, adopt, the post-write self check).
Values a client forwards from its environment by name (Codex
env_vars, bearer_token_env_var, env_http_headers) read back as
${env:NAME} references in env and headers (SPEC 11.2).
Fields§
§fields: ServerFieldsLaunch and connection fields; transport is always set.
headers_helper: Option<String>§disabled: boolThe entry is natively disabled (enabled: false).
tools: ToolListsThe native tool filter.
passthrough: NativeMapAllowlisted native fields, for [client.<id>].
unmapped: NativeMapNative fields with no canonical or passthrough equivalent. Reported on import; carried over by later writes.
Trait Implementations§
impl StructuralPartialEq for ServerDef
Auto Trait Implementations§
impl Forget for ServerDef
impl Freeze for ServerDefwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
*const LeafNode<String, String> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, String)>>: Freeze,
PhantomData<(String, NativeValue)>: Freeze,
impl Move for ServerDef
impl RefUnwindSafe for ServerDef
impl Send for ServerDef
impl Sync for ServerDef
impl Unpin for ServerDef
impl UnsafeUnpin for ServerDefwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
*const LeafNode<String, String> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, String)>>: UnsafeUnpin,
PhantomData<(String, NativeValue)>: UnsafeUnpin,
impl UnwindSafe for ServerDef
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