pub enum ActionConfig {
Proxy {
upstream: String,
connect_timeout_ms: u64,
read_timeout_ms: u64,
strip_path_prefix: Option<String>,
add_path_prefix: Option<String>,
},
Grpc {
upstream: String,
connect_timeout_ms: u64,
read_timeout_ms: u64,
},
Static {
root: String,
index: Vec<String>,
},
Redirect {
location: String,
status: u16,
},
Respond {
status: u16,
body: String,
content_type: String,
},
Mcp(Box<McpGatewayConfig>),
Llm(Box<LlmConfig>),
Unknown(String),
}Variants§
Proxy
Fields
Grpc
Static
Redirect
Respond
Mcp(Box<McpGatewayConfig>)
The MCP gateway (mcp_gateway).
Llm(Box<LlmConfig>)
The LLM proxy (llm).
Unknown(String)
Trait Implementations§
Source§impl Clone for ActionConfig
impl Clone for ActionConfig
Auto Trait Implementations§
impl Freeze for ActionConfig
impl RefUnwindSafe for ActionConfig
impl Send for ActionConfig
impl Sync for ActionConfig
impl Unpin for ActionConfig
impl UnsafeUnpin for ActionConfig
impl UnwindSafe for ActionConfig
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