pub struct CraftingProcess {Show 14 fields
pub version: u8,
pub crafting_id: u64,
pub authority: Pubkey,
pub recipe: Pubkey,
pub crafting_facility: Pubkey,
pub inputs_checksum: [u8; 16],
pub outputs_checksum: [u8; 16],
pub quantity: u64,
pub status: ProcessStatus,
pub start_time: i64,
pub end_time: i64,
pub deny_permissionless_claiming: u8,
pub use_local_time: u8,
pub bump: u8,
}Expand description
This account represents crafting in progress
Fields§
§version: u8The data version of this account.
crafting_id: u64the crafting id
the owner/authority of this crafting process
recipe: Pubkeythe recipe
crafting_facility: Pubkeythe crafting facility
inputs_checksum: [u8; 16]used to check if expected inputs have been supplied
outputs_checksum: [u8; 16]used to check if expected outputs have been claimed
quantity: u64Quantity of outputs to craft
status: ProcessStatusThe status of this crafting process
start_time: i64the start timestamp
end_time: i64the end timestamp
deny_permissionless_claiming: u8Whether or not to deny permission-less claiming. True when > 0
use_local_time: u8Whether or not to local time supplied by the location. True when > 0
bump: u8bump for PDA
Implementations§
Trait Implementations§
Source§impl BorshDeserialize for CraftingProcesswhere
u8: BorshDeserialize,
u64: BorshDeserialize,
Pubkey: BorshDeserialize,
[u8; 16]: BorshDeserialize,
ProcessStatus: BorshDeserialize,
i64: BorshDeserialize,
impl BorshDeserialize for CraftingProcesswhere
u8: BorshDeserialize,
u64: BorshDeserialize,
Pubkey: BorshDeserialize,
[u8; 16]: BorshDeserialize,
ProcessStatus: BorshDeserialize,
i64: BorshDeserialize,
fn deserialize_reader<R: Read>(reader: &mut R) -> Result<Self, Error>
Source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
Source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
Source§impl BorshSerialize for CraftingProcess
impl BorshSerialize for CraftingProcess
Source§impl CarbonDeserialize for CraftingProcess
impl CarbonDeserialize for CraftingProcess
const DISCRIMINATOR: &'static [u8]
fn deserialize(data: &[u8]) -> Option<Self>
Source§impl Clone for CraftingProcess
impl Clone for CraftingProcess
Source§fn clone(&self) -> CraftingProcess
fn clone(&self) -> CraftingProcess
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 CraftingProcess
impl Debug for CraftingProcess
Source§impl PartialEq for CraftingProcess
impl PartialEq for CraftingProcess
impl StructuralPartialEq for CraftingProcess
Auto Trait Implementations§
impl Freeze for CraftingProcess
impl RefUnwindSafe for CraftingProcess
impl Send for CraftingProcess
impl Sync for CraftingProcess
impl Unpin for CraftingProcess
impl UnwindSafe for CraftingProcess
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more