pub struct VhtlcContract {
pub options: VhtlcOptions,
}Fields§
§options: VhtlcOptionsTrait Implementations§
Source§impl Clone for VhtlcContract
impl Clone for VhtlcContract
Source§fn clone(&self) -> VhtlcContract
fn clone(&self) -> VhtlcContract
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ContractSpec for VhtlcContract
impl ContractSpec for VhtlcContract
const VERSION: u32 = 1
fn contract_type() -> ContractType
fn script_pubkey(&self, ctx: &ContractContext) -> Result<ScriptBuf, Error>
fn spendable_paths( &self, ctx: &ContractContext, ) -> Result<Vec<SpendPath>, Error>
fn spendable_selections( &self, ctx: &ContractContext, ) -> Result<Vec<SpendSelection>, Error>
Source§impl Debug for VhtlcContract
impl Debug for VhtlcContract
Source§impl<'de> Deserialize<'de> for VhtlcContract
impl<'de> Deserialize<'de> for VhtlcContract
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
impl Eq for VhtlcContract
Source§impl PartialEq for VhtlcContract
impl PartialEq for VhtlcContract
Source§fn eq(&self, other: &VhtlcContract) -> bool
fn eq(&self, other: &VhtlcContract) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for VhtlcContract
impl Serialize for VhtlcContract
impl StructuralPartialEq for VhtlcContract
Auto Trait Implementations§
impl Freeze for VhtlcContract
impl RefUnwindSafe for VhtlcContract
impl Send for VhtlcContract
impl Sync for VhtlcContract
impl Unpin for VhtlcContract
impl UnsafeUnpin for VhtlcContract
impl UnwindSafe for VhtlcContract
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