pub struct EnumNumberValue {
pub value: f64,
}Expand description
One value in a number-typed enum. OAS / JSON Schema does not define
per-value documentation; see EnumStringValue.
Fields§
§value: f64Trait Implementations§
Source§impl Clone for EnumNumberValue
impl Clone for EnumNumberValue
Source§fn clone(&self) -> EnumNumberValue
fn clone(&self) -> EnumNumberValue
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 EnumNumberValue
impl Debug for EnumNumberValue
Source§impl<'de> Deserialize<'de> for EnumNumberValue
impl<'de> Deserialize<'de> for EnumNumberValue
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 EnumNumberValue
impl PartialEq for EnumNumberValue
Source§fn eq(&self, other: &EnumNumberValue) -> bool
fn eq(&self, other: &EnumNumberValue) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for EnumNumberValue
impl Serialize for EnumNumberValue
impl StructuralPartialEq for EnumNumberValue
Auto Trait Implementations§
impl Freeze for EnumNumberValue
impl RefUnwindSafe for EnumNumberValue
impl Send for EnumNumberValue
impl Sync for EnumNumberValue
impl Unpin for EnumNumberValue
impl UnsafeUnpin for EnumNumberValue
impl UnwindSafe for EnumNumberValue
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