pub struct CreateAsset {
pub mint: [u8; 64],
pub asset_id: [u8; 32],
pub category: Category,
pub risk: u8,
pub bump: u8,
}Expand description
Instruction.
Fields§
§mint: [u8; 64]§asset_id: [u8; 32]§category: Category§risk: u8§bump: u8Trait Implementations§
Source§impl BorshDeserialize for CreateAssetwhere
[u8; 64]: BorshDeserialize,
[u8; 32]: BorshDeserialize,
Category: BorshDeserialize,
u8: BorshDeserialize,
impl BorshDeserialize for CreateAssetwhere
[u8; 64]: BorshDeserialize,
[u8; 32]: BorshDeserialize,
Category: BorshDeserialize,
u8: BorshDeserialize,
Source§impl BorshSerialize for CreateAssetwhere
[u8; 64]: BorshSerialize,
[u8; 32]: BorshSerialize,
Category: BorshSerialize,
u8: BorshSerialize,
impl BorshSerialize for CreateAssetwhere
[u8; 64]: BorshSerialize,
[u8; 32]: BorshSerialize,
Category: BorshSerialize,
u8: BorshSerialize,
Source§impl Discriminator for CreateAsset
impl Discriminator for CreateAsset
const DISCRIMINATOR: [u8; 8]
fn discriminator() -> [u8; 8]
Source§impl InstructionData for CreateAsset
impl InstructionData for CreateAsset
Auto Trait Implementations§
impl Freeze for CreateAsset
impl RefUnwindSafe for CreateAsset
impl Send for CreateAsset
impl Sync for CreateAsset
impl Unpin for CreateAsset
impl UnwindSafe for CreateAsset
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> 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