pub struct MerchantOperatorConfig {
pub discriminator: u8,
pub version: u32,
pub bump: u8,
pub merchant: Pubkey,
pub operator: Pubkey,
pub operator_fee: u64,
pub fee_type: FeeType,
pub current_order_id: u32,
pub days_to_close: u16,
pub num_policies: u32,
pub num_accepted_currencies: u32,
}Fields§
§discriminator: u8§version: u32§bump: u8§merchant: Pubkey§operator: Pubkey§operator_fee: u64§fee_type: FeeType§current_order_id: u32§days_to_close: u16§num_policies: u32§num_accepted_currencies: u32Implementations§
Trait Implementations§
Source§impl BorshDeserialize for MerchantOperatorConfig
impl BorshDeserialize for MerchantOperatorConfig
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 Clone for MerchantOperatorConfig
impl Clone for MerchantOperatorConfig
Source§fn clone(&self) -> MerchantOperatorConfig
fn clone(&self) -> MerchantOperatorConfig
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 MerchantOperatorConfig
impl Debug for MerchantOperatorConfig
Source§impl PartialEq for MerchantOperatorConfig
impl PartialEq for MerchantOperatorConfig
Source§impl<'a> TryFrom<&AccountInfo<'a>> for MerchantOperatorConfig
impl<'a> TryFrom<&AccountInfo<'a>> for MerchantOperatorConfig
impl Eq for MerchantOperatorConfig
impl StructuralPartialEq for MerchantOperatorConfig
Auto Trait Implementations§
impl Freeze for MerchantOperatorConfig
impl RefUnwindSafe for MerchantOperatorConfig
impl Send for MerchantOperatorConfig
impl Sync for MerchantOperatorConfig
impl Unpin for MerchantOperatorConfig
impl UnwindSafe for MerchantOperatorConfig
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