pub struct ServerBody {Show 15 fields
pub display_name: Option<String>,
pub description: Option<String>,
pub tags: Option<Vec<String>>,
pub transport: Option<Transport>,
pub command: Option<String>,
pub args: Option<Vec<String>>,
pub cwd: Option<String>,
pub url: Option<String>,
pub headers: Option<BTreeMap<String, String>>,
pub env: Option<BTreeMap<String, String>>,
pub delivery: Option<Delivery>,
pub tools: Option<ToolFilter>,
pub os: Option<BTreeMap<String, ServerOverride>>,
pub client: Option<BTreeMap<String, Table>>,
pub meta: Option<Meta>,
}Expand description
A server definition without identity: shared by store servers and project-only servers.
Fields§
§display_name: Option<String>§description: Option<String>§transport: Option<Transport>stdio, http or sse.
command: Option<String>Executable (stdio).
args: Option<Vec<String>>Arguments (stdio).
cwd: Option<String>Working directory (stdio); may use ${home}, ${project}, ${surjection_home}.
url: Option<String>Endpoint (http, sse).
headers: Option<BTreeMap<String, String>>HTTP headers (http, sse); values may hold references.
env: Option<BTreeMap<String, String>>Environment (stdio); values are references or literal non-secrets.
delivery: Option<Delivery>§tools: Option<ToolFilter>Tool filters, written only through native fields.
os: Option<BTreeMap<String, ServerOverride>>Per-OS overrides, deep-merged over the definition.
client: Option<BTreeMap<String, Table>>Native passthrough fields per client id, checked against that
client’s allowlist; native_name is accepted for every client.
meta: Option<Meta>Implementations§
Source§impl ServerBody
impl ServerBody
Sourcepub fn fields(&self) -> ServerFields
pub fn fields(&self) -> ServerFields
The launch and connection fields of this definition.
Trait Implementations§
Source§impl Clone for ServerBody
impl Clone for ServerBody
Source§impl Debug for ServerBody
impl Debug for ServerBody
Source§impl Default for ServerBody
impl Default for ServerBody
Source§impl<'de> Deserialize<'de> for ServerBody
impl<'de> Deserialize<'de> for ServerBody
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 ServerBody
impl JsonSchema for ServerBody
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 ServerBody
impl PartialEq for ServerBody
Source§impl Serialize for ServerBody
impl Serialize for ServerBody
impl StructuralPartialEq for ServerBody
Auto Trait Implementations§
impl Forget for ServerBody
impl Freeze for ServerBodywhere
*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,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
*const LeafNode<String, ServerOverride> is !null: Freeze,
PhantomData<Box<(String, ServerOverride)>>: Freeze,
*const LeafNode<String, Map<String, Value>> is !null: Freeze,
PhantomData<Box<(String, Map<String, Value>)>>: Freeze,
impl Move for ServerBody
impl RefUnwindSafe for ServerBody
impl Send for ServerBodywhere
RawVecInner: Send,
NodeRef<Owned, String, String, LeafOrInternal>: Send,
BoxRaw<(String, String)>: Send,
NodeRef<Owned, String, Value, LeafOrInternal>: Send,
BoxRaw<(String, Value)>: Send,
NodeRef<Owned, String, ServerOverride, LeafOrInternal>: Send,
BoxRaw<(String, ServerOverride)>: Send,
NodeRef<Owned, String, Map<String, Value>, LeafOrInternal>: Send,
BoxRaw<(String, Map<String, Value>)>: Send,
impl Sync for ServerBodywhere
RawVecInner: Sync,
NodeRef<Owned, String, String, LeafOrInternal>: Sync,
BoxRaw<(String, String)>: Sync,
NodeRef<Owned, String, Value, LeafOrInternal>: Sync,
BoxRaw<(String, Value)>: Sync,
NodeRef<Owned, String, ServerOverride, LeafOrInternal>: Sync,
BoxRaw<(String, ServerOverride)>: Sync,
NodeRef<Owned, String, Map<String, Value>, LeafOrInternal>: Sync,
BoxRaw<(String, Map<String, Value>)>: Sync,
impl Unpin for ServerBodywhere
*const u8 is !null: Unpin,
*const LeafNode<String, String> is !null: Unpin,
Box<(String, String)>: Unpin,
*const LeafNode<String, Value> is !null: Unpin,
Box<(String, Value)>: Unpin,
*const LeafNode<String, ServerOverride> is !null: Unpin,
Box<(String, ServerOverride)>: Unpin,
*const LeafNode<String, Map<String, Value>> is !null: Unpin,
Box<(String, Map<String, Value>)>: Unpin,
impl UnsafeUnpin for ServerBodywhere
*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,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
*const LeafNode<String, ServerOverride> is !null: UnsafeUnpin,
PhantomData<Box<(String, ServerOverride)>>: UnsafeUnpin,
*const LeafNode<String, Map<String, Value>> is !null: UnsafeUnpin,
PhantomData<Box<(String, Map<String, Value>)>>: UnsafeUnpin,
impl UnwindSafe for ServerBodywhere
RawVecInner: UnwindSafe,
BTreeMap<String, String>: UnwindSafe,
BTreeMap<String, Value>: UnwindSafe,
BTreeMap<String, ServerOverride>: UnwindSafe,
BTreeMap<String, Map<String, Value>>: UnwindSafe,
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