pub struct BtcResult {
pub type_: String,
pub optional: bool,
pub required: bool,
pub description: String,
pub skip_type_check: bool,
pub key_name: String,
pub condition: String,
pub inner: Vec<BtcResult>,
}
Expand description
Bitcoin method result specification
Fields§
§type_: String
Type of the result
optional: bool
Whether the result is optional
required: bool
Whether the result is required (computed from optional)
description: String
Description of the result
skip_type_check: bool
Whether to skip type checking for this result
key_name: String
Key name for the result
condition: String
Condition for when this result is present
inner: Vec<BtcResult>
Inner results for nested structures
Implementations§
Source§impl BtcResult
impl BtcResult
Sourcepub fn new(
type_: String,
optional: bool,
description: String,
skip_type_check: bool,
key_name: String,
condition: String,
inner: Vec<BtcResult>,
) -> Self
pub fn new( type_: String, optional: bool, description: String, skip_type_check: bool, key_name: String, condition: String, inner: Vec<BtcResult>, ) -> Self
Creates a new BtcResult with the specified parameters
Sourcepub fn post_process(&mut self)
pub fn post_process(&mut self)
Post-processes the result to update required field based on optional
Trait Implementations§
Source§impl<'de> Deserialize<'de> for BtcResult
impl<'de> Deserialize<'de> for BtcResult
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 BtcResult
impl RefUnwindSafe for BtcResult
impl Send for BtcResult
impl Sync for BtcResult
impl Unpin for BtcResult
impl UnwindSafe for BtcResult
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