pub struct SignOptions {
pub sign_inputs: Option<Vec<usize>>,
pub sighash: Option<u8>,
pub finalize: bool,
}Expand description
Optional controls for PSBT signing behavior.
Fields§
§sign_inputs: Option<Vec<usize>>Restrict signing to specific input indices.
sighash: Option<u8>Override the PSBT sighash type as raw u8.
finalize: boolIf true, finalize the PSBT after signing (for internal wallet use). Defaults to false for dApp/marketplace compatibility.
Trait Implementations§
Source§impl Clone for SignOptions
impl Clone for SignOptions
Source§fn clone(&self) -> SignOptions
fn clone(&self) -> SignOptions
Returns a duplicate 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 SignOptions
impl Debug for SignOptions
Source§impl Default for SignOptions
impl Default for SignOptions
Source§fn default() -> SignOptions
fn default() -> SignOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SignOptions
impl<'de> Deserialize<'de> for SignOptions
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 SignOptions
impl RefUnwindSafe for SignOptions
impl Send for SignOptions
impl Sync for SignOptions
impl Unpin for SignOptions
impl UnsafeUnpin for SignOptions
impl UnwindSafe for SignOptions
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