pub struct CreateNetwork {
pub name: [u8; 32],
pub schema: NetworkSchema,
pub address_tracer_reward: u64,
pub address_confirmation_reward: u64,
pub asset_tracer_reward: u64,
pub asset_confirmation_reward: u64,
pub network_bump: u8,
pub reward_signer_bump: u8,
pub report_price: u64,
}
Expand description
Instruction.
Fields§
§name: [u8; 32]
§schema: NetworkSchema
§address_tracer_reward: u64
§address_confirmation_reward: u64
§asset_tracer_reward: u64
§asset_confirmation_reward: u64
§network_bump: u8
§reward_signer_bump: u8
§report_price: u64
Trait Implementations§
Source§impl BorshDeserialize for CreateNetworkwhere
[u8; 32]: BorshDeserialize,
NetworkSchema: BorshDeserialize,
u64: BorshDeserialize,
u8: BorshDeserialize,
impl BorshDeserialize for CreateNetworkwhere
[u8; 32]: BorshDeserialize,
NetworkSchema: BorshDeserialize,
u64: BorshDeserialize,
u8: BorshDeserialize,
Source§impl BorshSerialize for CreateNetworkwhere
[u8; 32]: BorshSerialize,
NetworkSchema: BorshSerialize,
u64: BorshSerialize,
u8: BorshSerialize,
impl BorshSerialize for CreateNetworkwhere
[u8; 32]: BorshSerialize,
NetworkSchema: BorshSerialize,
u64: BorshSerialize,
u8: BorshSerialize,
Source§impl Discriminator for CreateNetwork
impl Discriminator for CreateNetwork
const DISCRIMINATOR: [u8; 8]
fn discriminator() -> [u8; 8]
Source§impl InstructionData for CreateNetwork
impl InstructionData for CreateNetwork
Auto Trait Implementations§
impl Freeze for CreateNetwork
impl RefUnwindSafe for CreateNetwork
impl Send for CreateNetwork
impl Sync for CreateNetwork
impl Unpin for CreateNetwork
impl UnwindSafe for CreateNetwork
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