Struct ckb_jsonrpc_types::Ratio
source · pub struct Ratio {
pub numer: Uint64,
pub denom: Uint64,
}
Expand description
Represents the ratio numerator / denominator
, where numerator
and denominator
are both
unsigned 64-bit integers.
Fields§
§numer: Uint64
Numerator.
denom: Uint64
Denominator.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Ratio
impl<'de> Deserialize<'de> for Ratio
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 RefUnwindSafe for Ratio
impl Send for Ratio
impl Sync for Ratio
impl Unpin for Ratio
impl UnwindSafe for Ratio
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