pub(crate) struct NodeInfo {
pub(crate) callsign: String,
pub(crate) linkedto: String,
}Expand description
A single connected node entry from the "nodes" array.
Represents a gateway or hotspot currently linked to the reflector. The
callsign includes the module suffix (e.g. "W1AW B" — the trailing
letter is the node’s local module). The linkedto field indicates which
reflector module the node is linked to.
The JSON payload also carries module (the node’s local module letter —
redundant with the suffix of callsign) and time (a server-locale
human-readable timestamp). These are ignored by serde because they do
not drive any business logic; the upstream xlxd code treats them as
display-only, and the connected_nodes table stores its own normalized
timestamps populated by the monitor.
Example JSON element:
{"callsign":"W1AW B","module":"B","linkedto":"A","time":"Tuesday Nov 17..."}Fields§
§callsign: StringNode callsign with module suffix (e.g. "W1AW B").
linkedto: StringReflector module letter the node is linked to (e.g. "A").
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NodeInfo
impl<'de> Deserialize<'de> for NodeInfo
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>,
Auto Trait Implementations§
impl Freeze for NodeInfo
impl RefUnwindSafe for NodeInfo
impl Send for NodeInfo
impl Sync for NodeInfo
impl Unpin for NodeInfo
impl UnwindSafe for NodeInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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>
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>
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