pub(crate) struct ConnectedNodeRow {
pub(crate) reflector: String,
pub(crate) node_callsign: String,
pub(crate) module: Option<String>,
pub(crate) protocol: Option<String>,
pub(crate) connected_since: Option<DateTime<Utc>>,
pub(crate) last_heard: Option<DateTime<Utc>>,
}Expand description
A single row from the connected_nodes table.
Maps directly to the table columns via sqlx::FromRow.
Fields§
§reflector: StringReflector callsign (foreign key to reflectors.callsign).
node_callsign: StringNode callsign (e.g. "W1AW B").
module: Option<String>Module letter on the reflector the node is linked to.
protocol: Option<String>Protocol used by the node (e.g. "dextra", "dplus").
connected_since: Option<DateTime<Utc>>When the node first connected (as reported by the reflector).
last_heard: Option<DateTime<Utc>>When the node was last seen in a monitor update.
Trait Implementations§
Source§impl Debug for ConnectedNodeRow
impl Debug for ConnectedNodeRow
Source§impl From<ConnectedNodeRow> for ConnectedNodeView
impl From<ConnectedNodeRow> for ConnectedNodeView
Source§fn from(row: ConnectedNodeRow) -> Self
fn from(row: ConnectedNodeRow) -> Self
Converts to this type from the input type.
Source§impl<'a, R: Row> FromRow<'a, R> for ConnectedNodeRow
impl<'a, R: Row> FromRow<'a, R> for ConnectedNodeRow
Auto Trait Implementations§
impl Freeze for ConnectedNodeRow
impl RefUnwindSafe for ConnectedNodeRow
impl Send for ConnectedNodeRow
impl Sync for ConnectedNodeRow
impl Unpin for ConnectedNodeRow
impl UnwindSafe for ConnectedNodeRow
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