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,
Unknown(String),
}Variants§
Trait Implementations§
Source§impl Clone for ActionConfig
impl Clone for ActionConfig
Source§fn clone(&self) -> ActionConfig
fn clone(&self) -> ActionConfig
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 moreAuto 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