pub struct Payment {
pub discriminator: u8,
pub order_id: u32,
pub amount: u64,
pub created_at: i64,
pub status: Status,
pub bump: u8,
}Fields§
§discriminator: u8§order_id: u32§amount: u64§created_at: i64§status: Status§bump: u8Implementations§
Trait Implementations§
Source§impl BorshDeserialize for Payment
impl BorshDeserialize for Payment
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 Payment
impl BorshSerialize for Payment
Source§impl<'a> TryFrom<&AccountInfo<'a>> for Payment
impl<'a> TryFrom<&AccountInfo<'a>> for Payment
impl Eq for Payment
impl StructuralPartialEq for Payment
Auto Trait Implementations§
impl Freeze for Payment
impl RefUnwindSafe for Payment
impl Send for Payment
impl Sync for Payment
impl Unpin for Payment
impl UnwindSafe for Payment
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