pub struct AutoAcceptConfig {
pub enabled: bool,
pub risk_threshold: u8,
}Expand description
Configuration for auto-accept mode (replaces removed auto_accept module)
Fields§
§enabled: boolWhether auto-accept is enabled
risk_threshold: u8Risk threshold for auto-acceptance (0-10)
Trait Implementations§
Source§impl Clone for AutoAcceptConfig
impl Clone for AutoAcceptConfig
Source§fn clone(&self) -> AutoAcceptConfig
fn clone(&self) -> AutoAcceptConfig
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 AutoAcceptConfig
impl Debug for AutoAcceptConfig
Source§impl Default for AutoAcceptConfig
impl Default for AutoAcceptConfig
Source§fn default() -> AutoAcceptConfig
fn default() -> AutoAcceptConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AutoAcceptConfig
impl<'de> Deserialize<'de> for AutoAcceptConfig
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 AutoAcceptConfig
impl RefUnwindSafe for AutoAcceptConfig
impl Send for AutoAcceptConfig
impl Sync for AutoAcceptConfig
impl Unpin for AutoAcceptConfig
impl UnsafeUnpin for AutoAcceptConfig
impl UnwindSafe for AutoAcceptConfig
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