pub struct BlocklistConfig {
pub enabled: bool,
pub providers: Vec<BlocklistProvider>,
pub refusal_cooldown_secs: u64,
pub rotated_out: Vec<RotatedOut>,
}Fields§
§enabled: bool§providers: Vec<BlocklistProvider>§refusal_cooldown_secs: u64§rotated_out: Vec<RotatedOut>Trait Implementations§
Source§impl Clone for BlocklistConfig
impl Clone for BlocklistConfig
Source§impl Debug for BlocklistConfig
impl Debug for BlocklistConfig
Source§impl Default for BlocklistConfig
impl Default for BlocklistConfig
Source§impl<'de> Deserialize<'de> for BlocklistConfig
impl<'de> Deserialize<'de> for BlocklistConfig
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 BlocklistConfig
impl RefUnwindSafe for BlocklistConfig
impl Send for BlocklistConfig
impl Sync for BlocklistConfig
impl Unpin for BlocklistConfig
impl UnsafeUnpin for BlocklistConfig
impl UnwindSafe for BlocklistConfig
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