pub struct PublicDeployment {
pub discriminator: [u8; 8],
pub version: u16,
pub bump: u8,
pub authority: Address,
pub round_id: u32,
pub deployed_usd_amount: u64,
pub total_stake_usd_amount: u64,
pub selection_mask: u32,
pub streak_multiplier: u32,
pub automation: Option<Address>,
pub reserved: [u8; 32],
}Fields§
§discriminator: [u8; 8]§version: u16Struct version.
bump: u8PDA bump seed.
Deployment authority account.
round_id: u32Deployment round id.
deployed_usd_amount: u64Gross USD amount the user provided at deploy time, before the fees
total_stake_usd_amount: u64Total USD stake after protocol fees are taken.
selection_mask: u3221-bit selection mask
streak_multiplier: u32Streak m the miner’s play earned, snapshotted at deploy. Read at claim so
the reward reflects the streak this play earned, not the miner’s live
streak (which advances on later deploys).
automation: Option<Address>PublicAutomation PDA that created this deployment, or None for
manual deploys. Settlement reads it to route USD winnings and rent.
reserved: [u8; 32]Reserved
Implementations§
Source§impl PublicDeployment
impl PublicDeployment
pub fn from_bytes(data: &[u8]) -> Result<Self, Error>
Trait Implementations§
Source§impl BorshDeserialize for PublicDeployment
impl BorshDeserialize for PublicDeployment
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 PublicDeployment
impl BorshSerialize for PublicDeployment
Source§impl Clone for PublicDeployment
impl Clone for PublicDeployment
Source§fn clone(&self) -> PublicDeployment
fn clone(&self) -> PublicDeployment
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PublicDeployment
impl Debug for PublicDeployment
impl Eq for PublicDeployment
Source§impl PartialEq for PublicDeployment
impl PartialEq for PublicDeployment
impl StructuralPartialEq for PublicDeployment
Source§impl<'a> TryFrom<&AccountInfo<'a>> for PublicDeployment
impl<'a> TryFrom<&AccountInfo<'a>> for PublicDeployment
Auto Trait Implementations§
impl Freeze for PublicDeployment
impl RefUnwindSafe for PublicDeployment
impl Send for PublicDeployment
impl Sync for PublicDeployment
impl Unpin for PublicDeployment
impl UnsafeUnpin for PublicDeployment
impl UnwindSafe for PublicDeployment
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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