pub struct EscrowParams {
    pub chain_config: ChainConfig,
    pub asset: Asset,
    pub sender: Party,
    pub recipient: Party,
    pub finish_after: Option<u64>,
    pub cancel_after: Option<u64>,
    pub has_conditions: bool,
}Expand description
Parameters required to create an escrow on-chain.
Fields§
§chain_config: ChainConfigChain-specific network configuration.
asset: AssetExactly which asset to lock (native, token, NFT, pool-share, etc).
sender: PartyWho is funding the escrow.
recipient: PartyWho will receive the funds once conditions pass.
finish_after: Option<u64>Optional block height or slot after which “release” is allowed.
Must be None or less than cancel_after if both are set.
cancel_after: Option<u64>Optional block height or slot after which “cancel” is allowed.
Must be None or greater than finish_after if both are set.
has_conditions: boolDenotes whether this escrow is subject to cryptographic conditions.
Trait Implementations§
Source§impl<'__de, __Context> BorrowDecode<'__de, __Context> for EscrowParams
 
impl<'__de, __Context> BorrowDecode<'__de, __Context> for EscrowParams
Source§fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>(
    decoder: &mut __D,
) -> Result<Self, DecodeError>
 
fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>( decoder: &mut __D, ) -> Result<Self, DecodeError>
Attempt to decode this type with the given BorrowDecode.
Source§impl Clone for EscrowParams
 
impl Clone for EscrowParams
Source§fn clone(&self) -> EscrowParams
 
fn clone(&self) -> EscrowParams
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 EscrowParams
 
impl Debug for EscrowParams
Source§impl<__Context> Decode<__Context> for EscrowParams
 
impl<__Context> Decode<__Context> for EscrowParams
Auto Trait Implementations§
impl Freeze for EscrowParams
impl RefUnwindSafe for EscrowParams
impl Send for EscrowParams
impl Sync for EscrowParams
impl Unpin for EscrowParams
impl UnwindSafe for EscrowParams
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