pub struct WhirlpoolConfig {
pub discriminator: [u8; 8],
pub fee_authority: Pubkey,
pub collect_protocol_fees_authority: Pubkey,
pub reward_emissions_super_authority: Pubkey,
pub default_protocol_fee_rate: u16,
}Fields§
§discriminator: [u8; 8]§default_protocol_fee_rate: u16Trait Implementations§
Source§impl BorshDeserialize for WhirlpoolConfig
impl BorshDeserialize for WhirlpoolConfig
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 WhirlpoolConfig
impl BorshSerialize for WhirlpoolConfig
Source§impl Clone for WhirlpoolConfig
impl Clone for WhirlpoolConfig
Source§fn clone(&self) -> WhirlpoolConfig
fn clone(&self) -> WhirlpoolConfig
Returns a copy 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 WhirlpoolConfig
impl Debug for WhirlpoolConfig
Source§impl PartialEq for WhirlpoolConfig
impl PartialEq for WhirlpoolConfig
impl Eq for WhirlpoolConfig
impl StructuralPartialEq for WhirlpoolConfig
Auto Trait Implementations§
impl Freeze for WhirlpoolConfig
impl RefUnwindSafe for WhirlpoolConfig
impl Send for WhirlpoolConfig
impl Sync for WhirlpoolConfig
impl Unpin for WhirlpoolConfig
impl UnwindSafe for WhirlpoolConfig
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