pub struct HandlerBinding {
pub hook: HandlerHook,
pub error_classes: Option<BTreeSet<ErrorClass>>,
pub action: HandlerAction,
pub max_triggers: u32,
}Expand description
A handler mounted on a hook.
The errorClasses filter is legal only on onError — the baseline
if/else conditional is reproduced via #[schemars(extend)].
Fields§
§hook: HandlerHookThe hook this handler fires on.
error_classes: Option<BTreeSet<ErrorClass>>Error-class filter — only meaningful (and only legal) on onError.
action: HandlerActionWhat to do when the hook fires.
max_triggers: u32Trigger budget (loop guard).
Trait Implementations§
Source§impl Clone for HandlerBinding
impl Clone for HandlerBinding
Source§fn clone(&self) -> HandlerBinding
fn clone(&self) -> HandlerBinding
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 moreSource§impl Debug for HandlerBinding
impl Debug for HandlerBinding
Source§impl<'de> Deserialize<'de> for HandlerBinding
impl<'de> Deserialize<'de> for HandlerBinding
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 HandlerBinding
impl JsonSchema for HandlerBinding
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 moreSource§impl PartialEq for HandlerBinding
impl PartialEq for HandlerBinding
Source§impl Serialize for HandlerBinding
impl Serialize for HandlerBinding
impl StructuralPartialEq for HandlerBinding
Auto Trait Implementations§
impl Freeze for HandlerBinding
impl RefUnwindSafe for HandlerBinding
impl Send for HandlerBinding
impl Sync for HandlerBinding
impl Unpin for HandlerBinding
impl UnsafeUnpin for HandlerBinding
impl UnwindSafe for HandlerBinding
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