Skip to main content

ClientInfo

Type Alias ClientInfo 

Source
pub type ClientInfo = Implementation;

Aliased Type§

pub struct ClientInfo {
    pub name: String,
    pub version: String,
    pub title: Option<String>,
    pub description: Option<String>,
    pub website_url: Option<String>,
    pub icons: Option<Vec<Icon>>,
}

Fields§

§name: String

Intended for programmatic or logical use, but used as a display name in past specs or fallback (if title isn’t present).

§version: String

Version of the implementation

§title: Option<String>

Intended for UI and end-user contexts — improved to be human-readable and easily understood, even by those unfamiliar with domain-specific terminology.

§description: Option<String>

Optional description for UI contexts.

§website_url: Option<String>

Optional implementation website.

§icons: Option<Vec<Icon>>

Optional UI icons.

Trait Implementations§

Source§

impl Display for ClientInfo

Enhanced Display implementation for ClientInfo

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<&str> for ClientInfo

From implementations for flexible client creation

Source§

fn from(name: &str) -> Self

Converts to this type from the input type.
Source§

impl From<(&str, &str)> for ClientInfo

Source§

fn from((name, version): (&str, &str)) -> Self

Converts to this type from the input type.