pub struct CallRecord {Show 21 fields
pub call_num: u64,
pub short_name: String,
pub talkgroup: u32,
pub talkgroup_tag: String,
pub talkgroup_description: String,
pub talkgroup_group_tag: String,
pub talkgroup_group: String,
pub freq: u64,
pub start_time: i64,
pub stop_time: i64,
pub call_length: f64,
pub emergency: bool,
pub encrypted: bool,
pub priority: i64,
pub phase2_tdma: bool,
pub tdma_slot: i64,
pub audio_type: String,
pub freq_list: Vec<FreqEntry>,
pub src_list: Vec<SrcEntry>,
pub patched_talkgroups: Vec<u32>,
pub extra: Map<String, Value>,
}Expand description
Trunk Recorder’s call JSON. Fields this crate doesn’t name are in extra.
Fields§
§call_num: u64§short_name: String§talkgroup: u32§talkgroup_tag: String§talkgroup_description: String§talkgroup_group_tag: String§talkgroup_group: String§freq: u64Hz.
start_time: i64Unix seconds.
stop_time: i64§call_length: f64Seconds of audio.
emergency: bool§encrypted: bool§priority: i64§phase2_tdma: bool§tdma_slot: i64§audio_type: String“digital” | “digital tdma” | “analog”
freq_list: Vec<FreqEntry>§src_list: Vec<SrcEntry>§patched_talkgroups: Vec<u32>Every talkgroup patched with this one during the call, its own included; absent (empty) when it wasn’t patched with another.
extra: Map<String, Value>Implementations§
Source§impl CallRecord
impl CallRecord
Sourcepub fn error_count(&self) -> u64
pub fn error_count(&self) -> u64
Voice frames with bit errors, over the call.
pub fn spike_count(&self) -> u64
Trait Implementations§
Source§impl Clone for CallRecord
impl Clone for CallRecord
Source§impl Debug for CallRecord
impl Debug for CallRecord
Source§impl Default for CallRecord
impl Default for CallRecord
Source§impl<'de> Deserialize<'de> for CallRecordwhere
CallRecord: Default,
impl<'de> Deserialize<'de> for CallRecordwhere
CallRecord: 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 CallRecord
impl RefUnwindSafe for CallRecord
impl Send for CallRecord
impl Sync for CallRecord
impl Unpin for CallRecord
impl UnsafeUnpin for CallRecord
impl UnwindSafe for CallRecord
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