Struct chainhook_sdk::observer::BitcoinRPCRequest
source · pub struct BitcoinRPCRequest {
pub method: String,
pub params: Value,
pub id: Value,
pub jsonrpc: Value,
}Expand description
JSONRPC Request
Fields§
§method: StringThe name of the RPC call
params: ValueParameters to the RPC call
id: ValueIdentifier for this Request, which should appear in the response
jsonrpc: Valuejsonrpc field, MUST be “2.0”
Trait Implementations§
source§impl Clone for BitcoinRPCRequest
impl Clone for BitcoinRPCRequest
source§fn clone(&self) -> BitcoinRPCRequest
fn clone(&self) -> BitcoinRPCRequest
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 BitcoinRPCRequest
impl Debug for BitcoinRPCRequest
source§impl<'de> Deserialize<'de> for BitcoinRPCRequest
impl<'de> Deserialize<'de> for BitcoinRPCRequest
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 RefUnwindSafe for BitcoinRPCRequest
impl Send for BitcoinRPCRequest
impl Sync for BitcoinRPCRequest
impl Unpin for BitcoinRPCRequest
impl UnwindSafe for BitcoinRPCRequest
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoCollection<T> for T
impl<T> IntoCollection<T> for T
§fn into_collection<A>(self) -> SmallVec<A>where
A: Array<Item = T>,
fn into_collection<A>(self) -> SmallVec<A>where A: Array<Item = T>,
Converts
self into a collection.