pub struct Nip46Response {
pub id: String,
pub result: String,
pub error: Option<String>,
}
Expand description
A NIP-46 request, found stringified in the content of a kind 24133 event
Fields§
§id: String
The Request Id being responded to
result: String
The result, either a string or a stringified JSON object
error: Option<String>
Optionally an error (in which case result is usually empty)
Trait Implementations§
Source§impl Clone for Nip46Response
impl Clone for Nip46Response
Source§fn clone(&self) -> Nip46Response
fn clone(&self) -> Nip46Response
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for Nip46Response
impl Debug for Nip46Response
Source§impl<'de> Deserialize<'de> for Nip46Response
impl<'de> Deserialize<'de> for Nip46Response
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Nip46Response
impl RefUnwindSafe for Nip46Response
impl Send for Nip46Response
impl Sync for Nip46Response
impl Unpin for Nip46Response
impl UnwindSafe for Nip46Response
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more