pub struct ScanSection {
pub enabled: bool,
pub config: ScanConfig,
pub allow: Vec<String>,
pub min_rssi: i8,
pub publish_reports: bool,
}Expand description
Scanning. (Unknown keys cannot be refused here: serde does not allow that with a flattened section.)
Fields§
§enabled: boolScan from start.
config: ScanConfigHow.
allow: Vec<String>Publish only devices whose address starts with one of these
(BC:57:29, say); empty publishes everything.
min_rssi: i8Ignore weaker signals, dBm.
publish_reports: boolPublish every report on <base>/scan/<address>.
Trait Implementations§
Source§impl Clone for ScanSection
impl Clone for ScanSection
Source§impl Debug for ScanSection
impl Debug for ScanSection
Source§impl Default for ScanSection
impl Default for ScanSection
Source§impl<'de> Deserialize<'de> for ScanSectionwhere
ScanSection: Default,
impl<'de> Deserialize<'de> for ScanSectionwhere
ScanSection: 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 ScanSection
impl RefUnwindSafe for ScanSection
impl Send for ScanSection
impl Sync for ScanSection
impl Unpin for ScanSection
impl UnsafeUnpin for ScanSection
impl UnwindSafe for ScanSection
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