pub struct WsProxyConfig {
pub upstream_url: String,
pub enabled: bool,
pub rules: Vec<WsProxyRule>,
pub passthrough_by_default: bool,
}
Expand description
WebSocket proxy configuration Environment variables:
- MOCKFORGE_WS_PROXY_UPSTREAM_URL: Default upstream WebSocket URL for proxy (default: ws://localhost:9080)
Fields§
§upstream_url: String
Default upstream WebSocket URL
enabled: bool
Whether to enable proxy mode
rules: Vec<WsProxyRule>
Per-path proxy rules
passthrough_by_default: bool
Passthrough by default unless an override applies
Implementations§
Source§impl WsProxyConfig
impl WsProxyConfig
Trait Implementations§
Source§impl Clone for WsProxyConfig
impl Clone for WsProxyConfig
Source§fn clone(&self) -> WsProxyConfig
fn clone(&self) -> WsProxyConfig
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 WsProxyConfig
impl Debug for WsProxyConfig
Source§impl Default for WsProxyConfig
impl Default for WsProxyConfig
Source§impl<'de> Deserialize<'de> for WsProxyConfig
impl<'de> Deserialize<'de> for WsProxyConfig
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 WsProxyConfig
impl RefUnwindSafe for WsProxyConfig
impl Send for WsProxyConfig
impl Sync for WsProxyConfig
impl Unpin for WsProxyConfig
impl UnwindSafe for WsProxyConfig
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