pub struct DefaultVtxoContract {
pub server: XOnlyPublicKey,
pub owner: XOnlyPublicKey,
pub exit_delay: Sequence,
}Fields§
§server: XOnlyPublicKey§owner: XOnlyPublicKey§exit_delay: SequenceImplementations§
Trait Implementations§
Source§impl Clone for DefaultVtxoContract
impl Clone for DefaultVtxoContract
Source§fn clone(&self) -> DefaultVtxoContract
fn clone(&self) -> DefaultVtxoContract
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 DefaultVtxoContract
impl ContractSpec for DefaultVtxoContract
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 DefaultVtxoContract
impl Debug for DefaultVtxoContract
Source§impl<'de> Deserialize<'de> for DefaultVtxoContract
impl<'de> Deserialize<'de> for DefaultVtxoContract
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 DefaultVtxoContract
Source§impl PartialEq for DefaultVtxoContract
impl PartialEq for DefaultVtxoContract
Source§fn eq(&self, other: &DefaultVtxoContract) -> bool
fn eq(&self, other: &DefaultVtxoContract) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for DefaultVtxoContract
impl Serialize for DefaultVtxoContract
impl StructuralPartialEq for DefaultVtxoContract
Auto Trait Implementations§
impl Freeze for DefaultVtxoContract
impl RefUnwindSafe for DefaultVtxoContract
impl Send for DefaultVtxoContract
impl Sync for DefaultVtxoContract
impl Unpin for DefaultVtxoContract
impl UnsafeUnpin for DefaultVtxoContract
impl UnwindSafe for DefaultVtxoContract
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