nostr_types/nip46/
response.rs

1use serde::{Deserialize, Serialize};
2
3/// A NIP-46 request, found stringified in the content of a kind 24133 event
4#[derive(Clone, Debug, Serialize, Deserialize)]
5pub struct Nip46Response {
6    /// The Request Id being responded to
7    pub id: String,
8
9    /// The result, either a string or a stringified JSON object
10    pub result: String,
11
12    /// Optionally an error (in which case result is usually empty)
13    pub error: Option<String>,
14}