pub struct McpServerConfig {
pub stdio: Option<McpStdioTransport>,
pub http: Option<McpHttpTransport>,
pub name: Option<String>,
pub enabled_tools: Vec<String>,
pub disabled_tools: Vec<String>,
pub auth_provider_type: Option<McpServerConfigAuthProviderType>,
pub timeout_seconds: Option<i32>,
}Expand description
antigravity.localharness.McpServerConfig
Fields§
§stdio: Option<McpStdioTransport>§http: Option<McpHttpTransport>§name: Option<String>§enabled_tools: Vec<String>§disabled_tools: Vec<String>§auth_provider_type: Option<McpServerConfigAuthProviderType>§timeout_seconds: Option<i32>Implementations§
Source§impl McpServerConfig
impl McpServerConfig
Sourcepub fn into_transport(self) -> Option<McpServerConfigTransport>
pub fn into_transport(self) -> Option<McpServerConfigTransport>
Takes the set arm of the transport oneof, if any.
Sourcepub fn has_transport(&self) -> bool
pub fn has_transport(&self) -> bool
True when any arm of the transport oneof is set.
Trait Implementations§
Source§impl Clone for McpServerConfig
impl Clone for McpServerConfig
Source§fn clone(&self) -> McpServerConfig
fn clone(&self) -> McpServerConfig
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 McpServerConfig
impl Debug for McpServerConfig
Source§impl Default for McpServerConfig
impl Default for McpServerConfig
Source§fn default() -> McpServerConfig
fn default() -> McpServerConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for McpServerConfig
impl<'de> Deserialize<'de> for McpServerConfig
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 PartialEq for McpServerConfig
impl PartialEq for McpServerConfig
Source§impl Serialize for McpServerConfig
impl Serialize for McpServerConfig
impl StructuralPartialEq for McpServerConfig
Auto Trait Implementations§
impl Freeze for McpServerConfig
impl RefUnwindSafe for McpServerConfig
impl Send for McpServerConfig
impl Sync for McpServerConfig
impl Unpin for McpServerConfig
impl UnsafeUnpin for McpServerConfig
impl UnwindSafe for McpServerConfig
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