pub struct FlexFloat(pub f64);Expand description
A flexible f64 that deserializes from both JSON numbers and strings.
The Limitless WebSocket occasionally encodes numeric fields as strings
(e.g., "0.55" instead of 0.55). This wrapper handles both formats
transparently.
Tuple Fields§
§0: f64Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FlexFloat
impl<'de> Deserialize<'de> for FlexFloat
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 FlexFloat
impl StructuralPartialEq for FlexFloat
Auto Trait Implementations§
impl Freeze for FlexFloat
impl RefUnwindSafe for FlexFloat
impl Send for FlexFloat
impl Sync for FlexFloat
impl Unpin for FlexFloat
impl UnsafeUnpin for FlexFloat
impl UnwindSafe for FlexFloat
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