pub struct HookSettings {
pub enabled: bool,
pub timeout_ms: u64,
pub fail_closed: bool,
pub on_error_default: String,
pub on_error_low: Option<String>,
pub on_error_medium: Option<String>,
pub on_error_high: Option<String>,
}Fields§
§enabled: bool§timeout_ms: u64§fail_closed: bool§on_error_default: String§on_error_low: Option<String>§on_error_medium: Option<String>§on_error_high: Option<String>Trait Implementations§
Source§impl Clone for HookSettings
impl Clone for HookSettings
Source§fn clone(&self) -> HookSettings
fn clone(&self) -> HookSettings
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 HookSettings
impl Debug for HookSettings
Source§impl Default for HookSettings
impl Default for HookSettings
Source§impl<'de> Deserialize<'de> for HookSettingswhere
HookSettings: Default,
impl<'de> Deserialize<'de> for HookSettingswhere
HookSettings: Default,
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 HookSettings
impl RefUnwindSafe for HookSettings
impl Send for HookSettings
impl Sync for HookSettings
impl Unpin for HookSettings
impl UnsafeUnpin for HookSettings
impl UnwindSafe for HookSettings
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