pub struct Request {
pub id: String,
pub op: Op,
pub account: String,
pub created_at: u64,
pub amount: Option<u64>,
pub to: Option<String>,
pub event: Event,
}Expand description
A request read back and verified (parseRequest’s result).
Fields§
§id: StringThe request’s id.
op: OpWhat it asks.
account: StringIts author, did:nostr:<pubkey>: the account it acts for.
created_at: u64The event’s created_at.
amount: Option<u64>Satoshis, for a withdrawal or transfer.
to: Option<String>The address (withdrawal) or account (transfer).
event: EventThe event it was read from.
Trait Implementations§
impl Eq for Request
impl StructuralPartialEq for Request
Auto Trait Implementations§
impl Freeze for Request
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnsafeUnpin for Request
impl UnwindSafe for Request
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.