pub enum BrowserHooksConfig {
Disabled,
Webhook {
api_base_url: Option<String>,
},
Inline {
timeout_ms: Option<u64>,
},
}Expand description
Hooks configuration to control how browser hooks interact with Browsr.
Variants§
Disabled
Disable browser hooks entirely.
Webhook
Send hook events to Browsr via HTTP/stdout.
Inline
Await an inline hook completion (e.g., via POST /event/hooks) before continuing.
Trait Implementations§
Source§impl Clone for BrowserHooksConfig
impl Clone for BrowserHooksConfig
Source§fn clone(&self) -> BrowserHooksConfig
fn clone(&self) -> BrowserHooksConfig
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 BrowserHooksConfig
impl Debug for BrowserHooksConfig
Source§impl Default for BrowserHooksConfig
impl Default for BrowserHooksConfig
Source§impl<'de> Deserialize<'de> for BrowserHooksConfig
impl<'de> Deserialize<'de> for BrowserHooksConfig
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
Source§impl JsonSchema for BrowserHooksConfig
impl JsonSchema for BrowserHooksConfig
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for BrowserHooksConfig
impl RefUnwindSafe for BrowserHooksConfig
impl Send for BrowserHooksConfig
impl Sync for BrowserHooksConfig
impl Unpin for BrowserHooksConfig
impl UnwindSafe for BrowserHooksConfig
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