pub struct NftPuzzle {
pub p2_puzzle: Puzzle,
pub metadata: NodePtr,
pub current_owner: Option<Bytes32>,
pub royalty_puzzle_hash: Bytes32,
pub royalty_percentage: u16,
}
Fields§
§p2_puzzle: Puzzle
§metadata: NodePtr
§current_owner: Option<Bytes32>
§royalty_puzzle_hash: Bytes32
§royalty_percentage: u16
Implementations§
Source§impl NftPuzzle
impl NftPuzzle
pub fn parse( allocator: &Allocator, launcher_id: Bytes32, puzzle: &Puzzle, ) -> Result<Option<Self>, ParseError>
pub fn output( &self, allocator: &mut Allocator, solution: NodePtr, ) -> Result<(Option<CreateCoin>, Option<NewNftOwner>), ParseError>
pub fn child_coin_info( &self, allocator: &mut Allocator, singleton: &SingletonPuzzle, parent_coin: Coin, child_coin: Coin, solution: NodePtr, ) -> Result<NftInfo<NodePtr>, ParseError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NftPuzzle
impl RefUnwindSafe for NftPuzzle
impl Send for NftPuzzle
impl Sync for NftPuzzle
impl Unpin for NftPuzzle
impl UnwindSafe for NftPuzzle
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