pub enum JsonValue {
GetApplicationConfig(GetApplicationConfig),
GetJsonValue(GetJsonValue),
Array(JsonValueArray),
Boolean(JsonValueBoolean),
Null(JsonValueNull),
Number(JsonValueNumber),
Object(JsonValueObject),
String(JsonValueString),
// some variants omitted
}
Expand description
Represents a JSON value
Variants§
GetApplicationConfig(GetApplicationConfig)
Returns application config, provided by the server. Can be called before authorization
GetJsonValue(GetJsonValue)
Converts a JSON-serialized string to corresponding JsonValue object. Can be called synchronously
Array(JsonValueArray)
Represents a JSON array
Boolean(JsonValueBoolean)
Represents a boolean JSON value
Null(JsonValueNull)
Represents a null JSON value
Number(JsonValueNumber)
Represents a numeric JSON value
Object(JsonValueObject)
Represents a JSON object
String(JsonValueString)
Represents a string JSON value
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for JsonValue
impl<'de> Deserialize<'de> for JsonValue
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
Auto Trait Implementations§
impl Freeze for JsonValue
impl RefUnwindSafe for JsonValue
impl Send for JsonValue
impl Sync for JsonValue
impl Unpin for JsonValue
impl UnwindSafe for JsonValue
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