StreamView

Struct StreamView 

Source
pub(crate) struct StreamView {
Show 18 fields pub(crate) id: i64, pub(crate) reflector: String, pub(crate) module: String, pub(crate) protocol: String, pub(crate) stream_id: i32, pub(crate) callsign: String, pub(crate) suffix: Option<String>, pub(crate) ur_call: Option<String>, pub(crate) dstar_text: Option<String>, pub(crate) dprs_lat: Option<f64>, pub(crate) dprs_lon: Option<f64>, pub(crate) started_at: DateTime<Utc>, pub(crate) ended_at: Option<DateTime<Utc>>, pub(crate) frame_count: Option<i32>, pub(crate) upload_status: Option<String>, pub(crate) last_upload_error: Option<String>, pub(crate) uploaded_at: Option<DateTime<Utc>>, pub(crate) created_at: Option<DateTime<Utc>>,
}
Expand description

JSON view of one captured stream.

Intentionally excludes audio_mp3 — raw binary audio blobs have no place in a JSON response. Consumers who need audio fetch it separately via the upload URL once the row is marked uploaded.

Fields§

§id: i64

Database row id.

§reflector: String

Reflector callsign.

§module: String

Module letter.

§protocol: String

D-STAR protocol name.

§stream_id: i32

D-STAR wire stream ID (non-zero u16, stored as i32).

Operators correlate this with gateway and reflector logs that record the same raw header value.

§callsign: String

Operator callsign from the D-STAR header.

§suffix: Option<String>

Operator suffix, if any.

§ur_call: Option<String>

UR (destination) callsign from the D-STAR header.

Typically CQCQCQ for ragchews or a callsign/routing string for directed traffic. Exposed so clients can filter and render the destination without re-parsing the audio blob.

§dstar_text: Option<String>

Decoded slow-data text message, if any.

§dprs_lat: Option<f64>

DPRS latitude (decimal degrees) decoded from the stream, if present.

§dprs_lon: Option<f64>

DPRS longitude (decimal degrees) decoded from the stream, if present.

§started_at: DateTime<Utc>

Start timestamp (first voice frame).

§ended_at: Option<DateTime<Utc>>

End timestamp (EOT or timeout). None if still in progress.

§frame_count: Option<i32>

Number of voice frames captured.

§upload_status: Option<String>

Upload lifecycle state.

§last_upload_error: Option<String>

Error message from the most recent failed upload attempt, if any.

§uploaded_at: Option<DateTime<Utc>>

When the stream was successfully uploaded to the Rdio API, if at all.

§created_at: Option<DateTime<Utc>>

When this row was first inserted into the streams table.

Trait Implementations§

Source§

impl Debug for StreamView

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<StreamRow> for StreamView

Source§

fn from(row: StreamRow) -> Self

Converts to this type from the input type.
Source§

impl Serialize for StreamView

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
§

impl<T> PolicyExt for T
where T: ?Sized,

§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] only if self and other return Action::Follow. Read more
§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

impl<A, B, T> HttpServerConnExec<A, B> for T
where B: Body,