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