Enum rust_tdlib::types::JsonValue
source · 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