pub struct SpeedValue {
pub value: Speed,
pub name: String,
pub cost_multiplier: Option<f64>,
}Expand description
Named speed value for UI display
Fields§
§value: SpeedThe API value (e.g., “flex”, “priority”)
name: StringDisplay name (e.g., “Flex”, “Fast”)
cost_multiplier: Option<f64>Price of this tier relative to the standard rate (e.g. 2.0 for Fast,
0.5 for Flex), applied to every token bucket. None when the tier’s
rate is not recorded; cost estimates then use the standard rate.
Trait Implementations§
Source§impl Clone for SpeedValue
impl Clone for SpeedValue
Source§impl Debug for SpeedValue
impl Debug for SpeedValue
Source§impl<'de> Deserialize<'de> for SpeedValue
impl<'de> Deserialize<'de> for SpeedValue
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 SpeedValue
impl PartialEq for SpeedValue
Source§impl Serialize for SpeedValue
impl Serialize for SpeedValue
impl StructuralPartialEq for SpeedValue
Auto Trait Implementations§
impl Freeze for SpeedValue
impl RefUnwindSafe for SpeedValue
impl Send for SpeedValue
impl Sync for SpeedValue
impl Unpin for SpeedValue
impl UnsafeUnpin for SpeedValue
impl UnwindSafe for SpeedValue
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