Enum json_gettext::JSONGetTextValue [−][src]
Expand description
Represents any valid JSON value. Reference can also be wrapped.
Variants
Tuple Fields of Str
0: &'a str
Tuple Fields of JSONValue
0: Value
Tuple Fields of JSONValueRef
0: &'a Value
Implementations
pub fn from_json_str<S: AsRef<str>>(
s: S
) -> Result<JSONGetTextValue<'static>, JSONGetTextValueError>
Convert to a string for JSON format.
👎 Deprecated since 3.2.0: Please use the to_json_string
function instead
Please use the to_json_string
function instead
Convert to a string for JSON format.
Convert to a string slice if it is possible (if it is a string).
Clone the reference of this JSONGetTextValue
instance.
pub fn parse_json<S: AsRef<str>>(
s: S
) -> Result<JSONGetTextValue<'static>, JSONGetTextValueError>
Trait Implementations
Deserialize this value from the given Serde deserializer. Read more
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
type Error = JSONGetTextValueError
type Error = JSONGetTextValueError
The type returned in the event of a conversion error.
Performs the conversion.
type Error = JSONGetTextValueError
type Error = JSONGetTextValueError
The type returned in the event of a conversion error.
Performs the conversion.
Auto Trait Implementations
impl<'a> RefUnwindSafe for JSONGetTextValue<'a>
impl<'a> Send for JSONGetTextValue<'a>
impl<'a> Sync for JSONGetTextValue<'a>
impl<'a> Unpin for JSONGetTextValue<'a>
impl<'a> UnwindSafe for JSONGetTextValue<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more