pub struct UpdateMcpServer {
pub name: Option<String>,
pub server_type: Option<McpServerType>,
pub config: Option<McpServerConfig>,
pub enabled: Option<bool>,
pub auto_start: Option<bool>,
pub env: Option<Vec<McpEnvEntry>>,
}Expand description
Request for updating an existing MCP server.
All fields are optional - only provided fields are updated.
Fields§
§name: Option<String>New user-friendly name for the server.
server_type: Option<McpServerType>New connection type (stdio or SSE).
config: Option<McpServerConfig>New execution configuration.
enabled: Option<bool>Whether tools from this server are included in chat.
auto_start: Option<bool>Whether to start this server when gglib launches.
env: Option<Vec<McpEnvEntry>>Environment variables for the server process.
Trait Implementations§
Source§impl Clone for UpdateMcpServer
impl Clone for UpdateMcpServer
Source§fn clone(&self) -> UpdateMcpServer
fn clone(&self) -> UpdateMcpServer
Returns a duplicate of the value. Read more
1.0.0 · 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 UpdateMcpServer
impl Debug for UpdateMcpServer
Source§impl Default for UpdateMcpServer
impl Default for UpdateMcpServer
Source§fn default() -> UpdateMcpServer
fn default() -> UpdateMcpServer
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UpdateMcpServer
impl<'de> Deserialize<'de> for UpdateMcpServer
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 UpdateMcpServer
impl RefUnwindSafe for UpdateMcpServer
impl Send for UpdateMcpServer
impl Sync for UpdateMcpServer
impl Unpin for UpdateMcpServer
impl UnwindSafe for UpdateMcpServer
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