pub struct BlocklistProvider {
pub zone: String,
pub enabled: bool,
pub refusal_codes: Vec<String>,
pub refusal_cooldown_secs: u64,
}Fields§
§zone: String§enabled: bool§refusal_codes: Vec<String>What “I refused your query” looks like from this provider, as opposed to “this is listed” — both arrive as the same kind of record and only the address separates them. Empty reads back as rolodex’s built-in set.
refusal_cooldown_secs: u64Trait Implementations§
Source§impl Clone for BlocklistProvider
impl Clone for BlocklistProvider
Source§impl Debug for BlocklistProvider
impl Debug for BlocklistProvider
Source§impl Default for BlocklistProvider
impl Default for BlocklistProvider
Source§impl<'de> Deserialize<'de> for BlocklistProvider
impl<'de> Deserialize<'de> for BlocklistProvider
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 BlocklistProvider
impl RefUnwindSafe for BlocklistProvider
impl Send for BlocklistProvider
impl Sync for BlocklistProvider
impl Unpin for BlocklistProvider
impl UnsafeUnpin for BlocklistProvider
impl UnwindSafe for BlocklistProvider
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