pub struct Whois {Show 14 fields
pub nick: String,
pub username: Option<String>,
pub host: Option<String>,
pub realname: Option<String>,
pub server: Option<String>,
pub server_info: Option<String>,
pub operator: Option<String>,
pub idle_secs: Option<u64>,
pub signon_ms: Option<u64>,
pub channels: Vec<String>,
pub account: Option<String>,
pub actual_host: Option<String>,
pub secure: bool,
pub complete: bool,
}Expand description
What a WHOIS said about someone.
A reply is nine numerics that arrive one at a time, so they are collected here and reported once,
when the closing 318 lands. A host that reacted to each numeric would redraw a profile card
nine times and show eight incomplete ones.
Fields§
§nick: StringTheir nick, as the server spells it.
username: Option<String>Their username, from 311.
host: Option<String>Their host, from 311.
realname: Option<String>Their realname, from 311.
server: Option<String>The server they are on, from 312.
server_info: Option<String>What that server calls itself, from 312.
operator: Option<String>How the server describes their operator privileges, from 313, when they have any.
idle_secs: Option<u64>How long they have been idle, from 317.
signon_ms: Option<u64>When they connected, in milliseconds since the Unix epoch, from 317.
channels: Vec<String>The channels they are in, keeping the prefix each one carries, from 319.
account: Option<String>The account they are logged in as, from 330.
actual_host: Option<String>Where they are connecting from, as the server words it, from 338 or 378.
secure: boolTrue when the server said the connection is over TLS, from 671.
complete: boolTrue once the closing 318 arrived and there is nothing more to come.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Whois
impl<'de> Deserialize<'de> for Whois
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>,
impl Eq for Whois
impl StructuralPartialEq for Whois
Source§impl TS for Whois
impl TS for Whois
Source§const DOCS: Option<&'static str>
const DOCS: Option<&'static str>
TS is derived, docs are
automatically read from your doc comments or #[doc = ".."] attributesSource§type WithoutGenerics = Whois
type WithoutGenerics = Whois
WithoutGenerics should just be Self.
If the type does have generic parameters, then all generic parameters must be replaced with
a dummy type, e.g ts_rs::Dummy or ().
The only requirement for these dummy types is that EXPORT_TO must be None. Read moreSource§fn decl_concrete() -> String
fn decl_concrete() -> String
TS::decl().
If this type is not generic, then this function is equivalent to TS::decl().Source§fn decl() -> String
fn decl() -> String
type User = { user_id: number, ... }.
This function will panic if the type has no declaration. Read moreSource§fn inline() -> String
fn inline() -> String
{ user_id: number }.
This function will panic if the type cannot be inlined.Source§fn inline_flattened() -> String
fn inline_flattened() -> String
This function will panic if the type cannot be flattened.
Source§fn visit_generics(v: &mut impl TypeVisitor)where
Self: 'static,
fn visit_generics(v: &mut impl TypeVisitor)where
Self: 'static,
Source§fn output_path() -> Option<&'static Path>
fn output_path() -> Option<&'static Path>
T should be exported.The returned path does not include the base directory from
TS_RS_EXPORT_DIR. Read moreSource§fn visit_dependencies(v: &mut impl TypeVisitor)where
Self: 'static,
fn visit_dependencies(v: &mut impl TypeVisitor)where
Self: 'static,
§fn dependencies() -> Vec<Dependency>where
Self: 'static,
fn dependencies() -> Vec<Dependency>where
Self: 'static,
§fn export() -> Result<(), ExportError>where
Self: 'static,
fn export() -> Result<(), ExportError>where
Self: 'static,
TS::export_all]. Read more§fn export_all() -> Result<(), ExportError>where
Self: 'static,
fn export_all() -> Result<(), ExportError>where
Self: 'static,
To export only this type, without its dependencies, use [
TS::export]. Read more§fn export_all_to(out_dir: impl AsRef<Path>) -> Result<(), ExportError>where
Self: 'static,
fn export_all_to(out_dir: impl AsRef<Path>) -> Result<(), ExportError>where
Self: 'static,
To export only this type, without its dependencies, use [
TS::export]. Read more§fn export_to_string() -> Result<String, ExportError>where
Self: 'static,
fn export_to_string() -> Result<String, ExportError>where
Self: 'static,
§fn default_output_path() -> Option<PathBuf>
fn default_output_path() -> Option<PathBuf>
T should be exported. Read more