pub type Metadata = MetadataV1;
Expand description
Metadata about a user
Note: the value is an Option because some real-world data has been found to contain JSON nulls as values, and we don’t want deserialization of those events to fail. We treat these in our get() function the same as if the key did not exist.
Aliased Type§
struct Metadata {
pub name: Option<String>,
pub about: Option<String>,
pub picture: Option<String>,
pub nip05: Option<String>,
pub other: Map<String, Value>,
}
Fields§
§name: Option<String>
username
about: Option<String>
about
picture: Option<String>
picture URL
nip05: Option<String>
nip05 dns id
other: Map<String, Value>
Additional fields not specified in NIP-01 or NIP-05