pub struct Deployment {Show 17 fields
pub server_type: McpServerType,
pub binary: Option<String>,
pub package: Option<String>,
pub port: Option<u16>,
pub endpoint: Option<String>,
pub enabled: bool,
pub display_in_web: bool,
pub dev_only: bool,
pub schemas: Vec<SchemaDefinition>,
pub oauth: OAuthRequirement,
pub tools: HashMap<String, ToolMetadata>,
pub model_config: Option<ToolModelConfig>,
pub env_vars: Vec<String>,
pub external_auth: Option<ExternalAuth>,
pub connector: Option<ConnectorConfig>,
pub headers: HashMap<String, String>,
pub tool_policy: Option<ToolPolicy>,
}Expand description
One MCP server as declared in the services tree.
tool_policy is the default decision a bridge-managed client applies to
every tool this server exposes and is required on every enabled server:
a server that declares none has no decision the bridge can enforce, so it
is withheld from the signed bridge manifest and startup validation reports
it as an error. allow skips the client’s per-call prompt (the governance
chain already judges every call); prompt or deny opt the server back
into the client’s confirmation or block it.
Fields§
§server_type: McpServerType§binary: Option<String>§package: Option<String>§port: Option<u16>§endpoint: Option<String>§enabled: bool§display_in_web: bool§dev_only: bool§schemas: Vec<SchemaDefinition>§oauth: OAuthRequirement§tools: HashMap<String, ToolMetadata>§model_config: Option<ToolModelConfig>§env_vars: Vec<String>§external_auth: Option<ExternalAuth>§connector: Option<ConnectorConfig>§headers: HashMap<String, String>§tool_policy: Option<ToolPolicy>Implementations§
Source§impl Deployment
impl Deployment
Trait Implementations§
Source§impl Clone for Deployment
impl Clone for Deployment
Source§fn clone(&self) -> Deployment
fn clone(&self) -> Deployment
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Deployment
impl Debug for Deployment
Source§impl<'de> Deserialize<'de> for Deployment
impl<'de> Deserialize<'de> for Deployment
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
Auto Trait Implementations§
impl Freeze for Deployment
impl RefUnwindSafe for Deployment
impl Send for Deployment
impl Sync for Deployment
impl Unpin for Deployment
impl UnsafeUnpin for Deployment
impl UnwindSafe for Deployment
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more