// Copyright (c) 2022-2023 Yuki Kishimoto // Copyright (c) 2023-2024 Rust Nostr Developers // Distributed under the MIT software license use nostr::prelude::*; fn main() -> Result<()> { let metadata = Metadata::new() .name("username") .display_name("My Username") .about("Description") .picture(Url::parse("https://example.com/avatar.png")?) .banner(Url::parse("https://example.com/banner.png")?) .nip05("username@example.com") .lud16("yuki@getalby.com"); println!("{}", metadata.as_json()); Ok(()) }