pub(crate) struct ReflectorRow {
pub(crate) callsign: String,
pub(crate) protocol: String,
pub(crate) ip_address: Option<String>,
pub(crate) dashboard_url: Option<String>,
pub(crate) country: Option<String>,
pub(crate) last_seen: Option<DateTime<Utc>>,
pub(crate) tier2_available: Option<bool>,
pub(crate) created_at: Option<DateTime<Utc>>,
}Expand description
A single row from the reflectors table.
Maps directly to the table columns via sqlx::FromRow. All optional
columns use Option<T> so that partially-populated rows (e.g., reflectors
discovered from Pi-Star host files, which lack dashboard URLs) deserialize
cleanly.
Fields§
§callsign: StringReflector callsign (primary key), e.g. "REF001" or "XLX320".
protocol: StringProtocol family: "dplus", "dextra", or "dcs".
ip_address: Option<String>Reflector IP address (Postgres INET maps to String via sqlx).
dashboard_url: Option<String>URL of the reflector’s web dashboard, if known.
country: Option<String>Two-letter country code, if known.
last_seen: Option<DateTime<Utc>>Timestamp of the most recent observation from any source.
tier2_available: Option<bool>Whether this reflector supports the XLX UDP JSON monitor protocol (port 10001), making it eligible for Tier 2 monitoring.
created_at: Option<DateTime<Utc>>When this row was first inserted.
Trait Implementations§
Source§impl Debug for ReflectorRow
impl Debug for ReflectorRow
Source§impl From<ReflectorRow> for ReflectorView
impl From<ReflectorRow> for ReflectorView
Source§fn from(row: ReflectorRow) -> Self
fn from(row: ReflectorRow) -> Self
Converts to this type from the input type.
Source§impl<'a, R: Row> FromRow<'a, R> for ReflectorRow
impl<'a, R: Row> FromRow<'a, R> for ReflectorRow
Auto Trait Implementations§
impl Freeze for ReflectorRow
impl RefUnwindSafe for ReflectorRow
impl Send for ReflectorRow
impl Sync for ReflectorRow
impl Unpin for ReflectorRow
impl UnwindSafe for ReflectorRow
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