pub struct RewriteConfig {
pub proxy_url: String,
pub proxy_domain: String,
pub mcp_upstream: String,
pub csp: CspConfig,
}Expand description
Runtime configuration for response rewriting.
Fields§
§proxy_url: StringProxy URL (scheme + host, no trailing slash) to insert into every CSP array so widgets can reach the proxy.
proxy_domain: StringBare proxy host (no scheme) used when rewriting widgetDomain.
mcp_upstream: StringUpstream MCP URL, used to recognise and strip upstream self-references from the CSP arrays the server returns.
csp: CspConfigDeclarative CSP config — global policies plus widget-scoped overrides.
Trait Implementations§
Source§impl Clone for RewriteConfig
impl Clone for RewriteConfig
Source§fn clone(&self) -> RewriteConfig
fn clone(&self) -> RewriteConfig
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 moreAuto Trait Implementations§
impl Freeze for RewriteConfig
impl RefUnwindSafe for RewriteConfig
impl Send for RewriteConfig
impl Sync for RewriteConfig
impl Unpin for RewriteConfig
impl UnsafeUnpin for RewriteConfig
impl UnwindSafe for RewriteConfig
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