pub type RelayInformationDocument = RelayInformationDocumentV2;
Expand description
Relay information document as described in NIP-11, supplied by a relay
Aliased Type§
struct RelayInformationDocument {Show 16 fields
pub name: Option<String>,
pub description: Option<String>,
pub pubkey: Option<PublicKeyHex>,
pub contact: Option<String>,
pub supported_nips: Vec<u32>,
pub software: Option<String>,
pub version: Option<String>,
pub limitation: Option<RelayLimitationV2>,
pub retention: Vec<RelayRetentionV1>,
pub relay_countries: Vec<String>,
pub language_tags: Vec<String>,
pub tags: Vec<String>,
pub posting_policy: Option<Url>,
pub payments_url: Option<Url>,
pub fees: Option<RelayFeesV1>,
pub other: Map<String, Value>,
}
Fields§
§name: Option<String>
Name of the relay
description: Option<String>
Description of the relay in plain text
pubkey: Option<PublicKeyHex>
Public key of an administrative contact of the relay
contact: Option<String>
An administrative contact for the relay. Should be a URI.
supported_nips: Vec<u32>
A list of NIPs supported by the relay
software: Option<String>
The software running the relay
version: Option<String>
The software version
limitation: Option<RelayLimitationV2>
limitation
retention: Vec<RelayRetentionV1>
retention
relay_countries: Vec<String>
content limitation: relay countries
community preferences: language tags
community preferences: tags
posting_policy: Option<Url>
community preferences: posting policy
payments_url: Option<Url>
payments_url
fees: Option<RelayFeesV1>
fees
other: Map<String, Value>
Additional fields not specified in NIP-11