pub struct ExtraValue(pub Value);Expand description
One absorbed extra field value. serde_yaml_ng accepted any YAML node here, but
serde_json::Value refuses a non-string mapping key and has no .inf/.nan. This reads any
node: scalar keys become strings and a non-finite float keeps its YAML spelling.
Tuple Fields§
§0: ValueTrait Implementations§
Source§impl Clone for ExtraValue
impl Clone for ExtraValue
Source§impl Debug for ExtraValue
impl Debug for ExtraValue
Source§impl<'de> Deserialize<'de> for ExtraValue
impl<'de> Deserialize<'de> for ExtraValue
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ExtraValue
impl PartialEq for ExtraValue
Source§impl Serialize for ExtraValue
impl Serialize for ExtraValue
impl StructuralPartialEq for ExtraValue
Auto Trait Implementations§
impl Freeze for ExtraValue
impl RefUnwindSafe for ExtraValue
impl Send for ExtraValue
impl Sync for ExtraValue
impl Unpin for ExtraValue
impl UnsafeUnpin for ExtraValue
impl UnwindSafe for ExtraValue
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more