Struct human_program::state::RepostRecord
source · #[repr(C)]pub struct RepostRecord {
pub state: Pubkey,
pub token: Pubkey,
pub user: Pubkey,
pub post_id: [u8; 32],
pub reposted_at: UnixTimestamp,
pub receive_amount: u64,
}
Fields§
§state: Pubkey
§token: Pubkey
§user: Pubkey
§post_id: [u8; 32]
§reposted_at: UnixTimestamp
§receive_amount: u64
Implementations§
source§impl RepostRecord
impl RepostRecord
pub fn can_redeem(&self, now: UnixTimestamp) -> bool
Trait Implementations§
source§impl BorshDeserialize for RepostRecordwhere
Pubkey: BorshDeserialize,
[u8; 32]: BorshDeserialize,
UnixTimestamp: BorshDeserialize,
u64: BorshDeserialize,
impl BorshDeserialize for RepostRecordwhere Pubkey: BorshDeserialize, [u8; 32]: BorshDeserialize, UnixTimestamp: BorshDeserialize, u64: BorshDeserialize,
source§impl BorshSerialize for RepostRecordwhere
Pubkey: BorshSerialize,
[u8; 32]: BorshSerialize,
UnixTimestamp: BorshSerialize,
u64: BorshSerialize,
impl BorshSerialize for RepostRecordwhere Pubkey: BorshSerialize, [u8; 32]: BorshSerialize, UnixTimestamp: BorshSerialize, u64: BorshSerialize,
source§impl Debug for RepostRecord
impl Debug for RepostRecord
source§impl Entity for RepostRecord
impl Entity for RepostRecord
Auto Trait Implementations§
impl RefUnwindSafe for RepostRecord
impl Send for RepostRecord
impl Sync for RepostRecord
impl Unpin for RepostRecord
impl UnwindSafe for RepostRecord
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