pub enum ResourceRate {
Fixed(Money),
Range(RateRange),
}Expand description
Resource rate that can be either fixed or a range (RFC-0001)
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for ResourceRate
impl Clone for ResourceRate
Source§fn clone(&self) -> ResourceRate
fn clone(&self) -> ResourceRate
Returns a duplicate 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 ResourceRate
impl Debug for ResourceRate
Source§impl<'de> Deserialize<'de> for ResourceRate
impl<'de> Deserialize<'de> for ResourceRate
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
Source§impl PartialEq for ResourceRate
impl PartialEq for ResourceRate
Source§impl Serialize for ResourceRate
impl Serialize for ResourceRate
impl StructuralPartialEq for ResourceRate
Auto Trait Implementations§
impl Freeze for ResourceRate
impl RefUnwindSafe for ResourceRate
impl Send for ResourceRate
impl Sync for ResourceRate
impl Unpin for ResourceRate
impl UnwindSafe for ResourceRate
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