pub struct FeeSlot {
pub fee_wad: Wad,
pub recipient: Address,
}Expand description
A fee slot with a WAD-scaled rate and 32-byte address recipient.
This type matches the kernel spec exactly:
fee_wad: WAD-scaled fee rate (1e18 = 100%)recipient: 32-byte canonical address
The executor is responsible for mapping chain-native addresses to/from this canonical 32-byte format.
Fields§
§fee_wad: WadThe fee rate as a WAD value (1e18 = 100%).
recipient: AddressThe recipient as a 32-byte canonical address.
Implementations§
Trait Implementations§
Source§impl BorshDeserialize for FeeSlot
impl BorshDeserialize for FeeSlot
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 FeeSlot
impl<'de> Deserialize<'de> for FeeSlot
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 FeeSlot
impl Eq for FeeSlot
impl StructuralPartialEq for FeeSlot
Auto Trait Implementations§
impl Freeze for FeeSlot
impl RefUnwindSafe for FeeSlot
impl Send for FeeSlot
impl Sync for FeeSlot
impl Unpin for FeeSlot
impl UnwindSafe for FeeSlot
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