struct XlxReflector {
name: String,
lastip: String,
dashboardurl: Option<String>,
country: Option<String>,
}Expand description
A single <reflector> entry from the XLX API.
Only the fields needed for the reflector registry are deserialized; the
rest (uptime, lastcontact, comment) are ignored via #[serde(default)] on
the parent container and field-level defaults here.
Fields§
§name: StringReflector callsign, e.g. "XLX000", "XLX320".
lastip: StringReflector IP address (the <lastip> element).
dashboardurl: Option<String>URL of the reflector’s web dashboard, if available.
country: Option<String>Country or region string (e.g. "USA - Florida").
Trait Implementations§
Source§impl Debug for XlxReflector
impl Debug for XlxReflector
Source§impl<'de> Deserialize<'de> for XlxReflector
impl<'de> Deserialize<'de> for XlxReflector
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for XlxReflector
impl RefUnwindSafe for XlxReflector
impl Send for XlxReflector
impl Sync for XlxReflector
impl Unpin for XlxReflector
impl UnwindSafe for XlxReflector
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