Struct nft_pixelboard_io::NFTPixelboardState
source · pub struct NFTPixelboardState {
pub owner: ActorId,
pub block_side_length: BlockSideLength,
pub pixel_price: u128,
pub resolution: Resolution,
pub commission_percentage: u8,
pub painting: Vec<Color>,
pub rectangles_by_token_ids: Vec<(TokenId, Rectangle)>,
pub tokens_by_rectangles: Vec<(Rectangle, TokenInfo)>,
pub ft_program: ActorId,
pub nft_program: ActorId,
pub txs: Vec<(ActorId, (TransactionId, NFTPixelboardAction))>,
pub tx_id: TransactionId,
}
Fields§
§owner: ActorId
§block_side_length: BlockSideLength
§pixel_price: u128
§resolution: Resolution
§commission_percentage: u8
§painting: Vec<Color>
§rectangles_by_token_ids: Vec<(TokenId, Rectangle)>
§tokens_by_rectangles: Vec<(Rectangle, TokenInfo)>
§ft_program: ActorId
§nft_program: ActorId
§txs: Vec<(ActorId, (TransactionId, NFTPixelboardAction))>
§tx_id: TransactionId
Trait Implementations§
source§impl Decode for NFTPixelboardState
impl Decode for NFTPixelboardState
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
fn decode<__CodecInputEdqy: Input>( __codec_input_edqy: &mut __CodecInputEdqy ) -> Result<Self, Error>
Attempt to deserialise the value from input.
§fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>
) -> Result<DecodeFinished, Error>where
I: Input,
fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>
) -> Result<DecodeFinished, Error>where
I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more
§fn skip<I>(input: &mut I) -> Result<(), Error>where
I: Input,
fn skip<I>(input: &mut I) -> Result<(), Error>where
I: Input,
Attempt to skip the encoded value from input. Read more
§fn encoded_fixed_size() -> Option<usize>
fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more
source§impl Default for NFTPixelboardState
impl Default for NFTPixelboardState
source§fn default() -> NFTPixelboardState
fn default() -> NFTPixelboardState
Returns the “default value” for a type. Read more
source§impl Encode for NFTPixelboardState
impl Encode for NFTPixelboardState
source§fn size_hint(&self) -> usize
fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read more
source§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy
)
fn encode_to<__CodecOutputEdqy: Output + ?Sized>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )
Convert self to a slice and append it to the destination.
§fn using_encoded<R, F>(&self, f: F) -> R
fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.
§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
source§impl TypeInfo for NFTPixelboardState
impl TypeInfo for NFTPixelboardState
impl EncodeLike for NFTPixelboardState
Auto Trait Implementations§
impl Freeze for NFTPixelboardState
impl RefUnwindSafe for NFTPixelboardState
impl Send for NFTPixelboardState
impl Sync for NFTPixelboardState
impl Unpin for NFTPixelboardState
impl UnwindSafe for NFTPixelboardState
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
§impl<T> DecodeAll for Twhere
T: Decode,
impl<T> DecodeAll for Twhere
T: Decode,
§fn decode_all(input: &mut &[u8]) -> Result<T, Error>
fn decode_all(input: &mut &[u8]) -> Result<T, Error>
Decode
Self
and consume all of the given input data. Read more§impl<T> DecodeLimit for Twhere
T: Decode,
impl<T> DecodeLimit for Twhere
T: Decode,
§impl<T> KeyedVec for Twhere
T: Codec,
impl<T> KeyedVec for Twhere
T: Codec,
§fn to_keyed_vec(&self, prepend_key: &[u8]) -> Vec<u8>
fn to_keyed_vec(&self, prepend_key: &[u8]) -> Vec<u8>
Return an encoding of
Self
prepended by given slice.