Struct chik_protocol::Coin
source · pub struct Coin {
pub parent_coin_info: Bytes32,
pub puzzle_hash: Bytes32,
pub amount: u64,
}Fields§
§parent_coin_info: Bytes32§puzzle_hash: Bytes32§amount: u64Implementations§
Trait Implementations§
source§impl<N> FromKlvm<N> for Coin
impl<N> FromKlvm<N> for Coin
fn from_klvm( decoder: &impl KlvmDecoder<Node = N>, node: N, ) -> Result<Self, FromKlvmError>
source§impl PartialEq for Coin
impl PartialEq for Coin
source§impl Streamable for Coin
impl Streamable for Coin
fn update_digest(&self, digest: &mut Sha256)
fn stream(&self, out: &mut Vec<u8>) -> Result<()>
fn parse<const TRUSTED: bool>(input: &mut Cursor<&[u8]>) -> Result<Self>
fn to_bytes(&self) -> Result<Vec<u8>, Error>
fn from_bytes(bytes: &[u8]) -> Result<Self, Error>where
Self: Sized,
fn from_bytes_unchecked(bytes: &[u8]) -> Result<Self, Error>where
Self: Sized,
fn hash(&self) -> [u8; 32]
source§impl<N> ToKlvm<N> for Coin
impl<N> ToKlvm<N> for Coin
fn to_klvm( &self, encoder: &mut impl KlvmEncoder<Node = N>, ) -> Result<N, ToKlvmError>
impl Copy for Coin
impl Eq for Coin
impl StructuralPartialEq for Coin
Auto Trait Implementations§
impl Freeze for Coin
impl RefUnwindSafe for Coin
impl Send for Coin
impl Sync for Coin
impl Unpin for Coin
impl UnwindSafe for Coin
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)