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