pub struct ApiCredit {
pub method: String,
pub credits: i64,
}Expand description
The API credit cost of a single RPC method on a chain.
Fields§
§method: StringRPC method name (e.g. eth_chainId).
credits: i64Number of API credits the method costs.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ApiCredit
impl<'de> Deserialize<'de> for ApiCredit
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
Auto Trait Implementations§
impl Freeze for ApiCredit
impl RefUnwindSafe for ApiCredit
impl Send for ApiCredit
impl Sync for ApiCredit
impl Unpin for ApiCredit
impl UnsafeUnpin for ApiCredit
impl UnwindSafe for ApiCredit
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