pub struct ProcessRegisterShip {
pub scorevars_bump: u8,
pub scorevars_ship_bump: u8,
pub reward_rate_per_second: u64,
pub fuel_max_reserve: u32,
pub food_max_reserve: u32,
pub arms_max_reserve: u32,
pub toolkit_max_reserve: u32,
pub milliseconds_to_burn_one_fuel: u32,
pub milliseconds_to_burn_one_food: u32,
pub milliseconds_to_burn_one_arms: u32,
pub milliseconds_to_burn_one_toolkit: u32,
}Fields§
§scorevars_bump: u8§scorevars_ship_bump: u8§reward_rate_per_second: u64§fuel_max_reserve: u32§food_max_reserve: u32§arms_max_reserve: u32§toolkit_max_reserve: u32§milliseconds_to_burn_one_fuel: u32§milliseconds_to_burn_one_food: u32§milliseconds_to_burn_one_arms: u32§milliseconds_to_burn_one_toolkit: u32Implementations§
Trait Implementations§
Source§impl ArrangeAccounts for ProcessRegisterShip
impl ArrangeAccounts for ProcessRegisterShip
type ArrangedAccounts = ProcessRegisterShipInstructionAccounts
fn arrange_accounts(accounts: &[AccountMeta]) -> Option<Self::ArrangedAccounts>
Source§impl BorshDeserialize for ProcessRegisterShip
impl BorshDeserialize for ProcessRegisterShip
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 ProcessRegisterShip
impl BorshSerialize for ProcessRegisterShip
Source§impl CarbonDeserialize for ProcessRegisterShip
impl CarbonDeserialize for ProcessRegisterShip
const DISCRIMINATOR: &'static [u8]
fn deserialize(data: &[u8]) -> Option<Self>
Source§impl Clone for ProcessRegisterShip
impl Clone for ProcessRegisterShip
Source§fn clone(&self) -> ProcessRegisterShip
fn clone(&self) -> ProcessRegisterShip
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 ProcessRegisterShip
impl Debug for ProcessRegisterShip
Source§impl Hash for ProcessRegisterShip
impl Hash for ProcessRegisterShip
Source§impl PartialEq for ProcessRegisterShip
impl PartialEq for ProcessRegisterShip
impl Eq for ProcessRegisterShip
impl StructuralPartialEq for ProcessRegisterShip
Auto Trait Implementations§
impl Freeze for ProcessRegisterShip
impl RefUnwindSafe for ProcessRegisterShip
impl Send for ProcessRegisterShip
impl Sync for ProcessRegisterShip
impl Unpin for ProcessRegisterShip
impl UnwindSafe for ProcessRegisterShip
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