pub struct HttpBridgeConfig {
pub mode: HttpMode,
pub url: String,
pub endpoints: Vec<EndpointConfig>,
pub cors_enabled: bool,
pub cors_origins: Vec<String>,
pub base_path: String,
pub timeout_secs: u32,
pub namespace: String,
pub poll_interval_ms: u64,
pub poll_endpoints: Vec<String>,
}Expand description
HTTP Bridge configuration
Fields§
§mode: HttpModeBridge mode (server or client)
url: StringBind address for server mode (e.g., “0.0.0.0:3000”) Base URL for client mode (e.g., “https://api.example.com”)
endpoints: Vec<EndpointConfig>Configured endpoints
cors_enabled: boolEnable CORS (server mode)
cors_origins: Vec<String>CORS allowed origins (empty = any)
base_path: StringBase path prefix for all endpoints
timeout_secs: u32Timeout for client requests in seconds
namespace: StringCLASP namespace prefix
poll_interval_ms: u64Polling interval in milliseconds for client mode (0 = disabled)
poll_endpoints: Vec<String>Endpoints to poll in client mode
Trait Implementations§
Source§impl Clone for HttpBridgeConfig
impl Clone for HttpBridgeConfig
Source§fn clone(&self) -> HttpBridgeConfig
fn clone(&self) -> HttpBridgeConfig
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 HttpBridgeConfig
impl Debug for HttpBridgeConfig
Source§impl Default for HttpBridgeConfig
impl Default for HttpBridgeConfig
Source§impl<'de> Deserialize<'de> for HttpBridgeConfig
impl<'de> Deserialize<'de> for HttpBridgeConfig
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 HttpBridgeConfig
impl RefUnwindSafe for HttpBridgeConfig
impl Send for HttpBridgeConfig
impl Sync for HttpBridgeConfig
impl Unpin for HttpBridgeConfig
impl UnsafeUnpin for HttpBridgeConfig
impl UnwindSafe for HttpBridgeConfig
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