pub struct SoundDetection {
pub detection_id: Option<String>,
pub sound_type: Option<SoundType>,
pub confidence: Option<f64>,
pub direction_deg: Option<f64>,
pub distance_m: Option<f64>,
pub level_db: Option<f64>,
pub timestamp: Option<DateTime<Utc>>,
pub description: Option<String>,
}Expand description
Sound detection event.
Fields§
§detection_id: Option<String>Detection ID
sound_type: Option<SoundType>Sound type
confidence: Option<f64>Confidence (0-1)
direction_deg: Option<f64>Direction (degrees from front)
distance_m: Option<f64>Distance estimate (m)
level_db: Option<f64>Level (dB)
timestamp: Option<DateTime<Utc>>Timestamp
description: Option<String>Description
Implementations§
Trait Implementations§
Source§impl Clone for SoundDetection
impl Clone for SoundDetection
Source§fn clone(&self) -> SoundDetection
fn clone(&self) -> SoundDetection
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 SoundDetection
impl Debug for SoundDetection
Source§impl Default for SoundDetection
impl Default for SoundDetection
Source§fn default() -> SoundDetection
fn default() -> SoundDetection
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SoundDetection
impl<'de> Deserialize<'de> for SoundDetection
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
Source§impl Serialize for SoundDetection
impl Serialize for SoundDetection
Auto Trait Implementations§
impl Freeze for SoundDetection
impl RefUnwindSafe for SoundDetection
impl Send for SoundDetection
impl Sync for SoundDetection
impl Unpin for SoundDetection
impl UnwindSafe for SoundDetection
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