pub struct FeesSpec {
pub performance: FeeSlot,
pub management: FeeSlot,
pub max_total_assets_growth_rate: Option<Wad>,
}Expand description
Spec-compliant fee collection using FeeSlot with 32-byte addresses.
This type matches the kernel spec exactly and uses fixed-size addresses for performance and predictable serialization.
Fields§
§performance: FeeSlotPerformance fee (charged on profits).
management: FeeSlotManagement fee (charged over time).
max_total_assets_growth_rate: Option<Wad>Optional cap on total assets growth rate for fee accrual.
Interpreted as an annualized WAD rate (1e18 = 100% per year).
Implementations§
Trait Implementations§
Source§impl BorshDeserialize for FeesSpec
impl BorshDeserialize for FeesSpec
fn deserialize_reader<__R: Read>(reader: &mut __R) -> Result<Self, Error>
§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.
§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<'de> Deserialize<'de> for FeesSpec
impl<'de> Deserialize<'de> for FeesSpec
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for FeesSpec
impl Eq for FeesSpec
impl StructuralPartialEq for FeesSpec
Auto Trait Implementations§
impl Freeze for FeesSpec
impl RefUnwindSafe for FeesSpec
impl Send for FeesSpec
impl Sync for FeesSpec
impl Unpin for FeesSpec
impl UnwindSafe for FeesSpec
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