nostr_types/types/
metadata.rs

1
2
3
4
5
6
7
8
9
use crate::versioned::metadata1::MetadataV1;

/// 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.
pub type Metadata = MetadataV1;