pub(crate) struct UploadFields<'a> {
pub(crate) api_key: &'a str,
pub(crate) system: &'a str,
pub(crate) system_label: &'a str,
pub(crate) talkgroup: &'a str,
pub(crate) talkgroup_label: &'a str,
pub(crate) source: &'a str,
pub(crate) talker_alias: &'a str,
pub(crate) talkgroup_tag: Option<&'a str>,
pub(crate) date_time: i64,
pub(crate) audio_name: &'a str,
pub(crate) audio_mp3: Vec<u8>,
}Expand description
Parameters for a single Rdio Scanner upload.
Grouped into a struct because the wire format has a dozen distinct
fields and Clippy’s too_many_arguments lint (denied in this crate)
would otherwise force an #[expect] attribute.
Fields§
§api_key: &'a strAPI key sent in the key form field.
system: &'a strNumeric system id (see crate::upload::compute_system_id).
system_label: &'a strHuman-readable system label, e.g. "REF030 (DPlus)".
talkgroup: &'a strNumeric talkgroup id (1..26, from the module letter).
talkgroup_label: &'a strHuman-readable talkgroup label, e.g. "Module C".
source: &'a strRaw operator callsign.
talker_alias: &'a strCallsign + optional suffix, e.g. "W1AW / D75".
talkgroup_tag: Option<&'a str>Optional D-STAR slow-data text message (20 chars max).
date_time: i64Unix seconds at the start of the transmission.
audio_name: &'a strFilename for the audio file part (see
crate::upload::make_audio_name).
audio_mp3: Vec<u8>MP3 bytes.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for UploadFields<'a>
impl<'a> RefUnwindSafe for UploadFields<'a>
impl<'a> Send for UploadFields<'a>
impl<'a> Sync for UploadFields<'a>
impl<'a> Unpin for UploadFields<'a>
impl<'a> UnwindSafe for UploadFields<'a>
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more