Struct waves_rust::util::JsonDeserializer
source · pub struct JsonDeserializer;
Implementations§
source§impl JsonDeserializer
impl JsonDeserializer
pub fn safe_to_string_from_field(
json: &Value,
field_name: &str
) -> Result<String>
pub fn safe_to_int_from_field(json: &Value, field_name: &str) -> Result<i64>
pub fn safe_to_array_from_field(
json: &Value,
field_name: &str
) -> Result<Vec<Value>>
pub fn safe_to_map_from_field(
json: &Value,
field_name: &str
) -> Result<Map<String, Value>>
pub fn safe_to_boolean_from_field(json: &Value, field_name: &str) -> Result<bool>
pub fn safe_to_string(json: &Value) -> Result<String>
pub fn safe_to_int(json: &Value) -> Result<i64>
pub fn safe_to_boolean(json: &Value) -> Result<bool>
pub fn safe_to_array(json: &Value) -> Result<Vec<Value>>
pub fn deserialize_data_array(value: &Value) -> Result<Vec<DataEntry>>
pub fn asset_id_from_json(
json: &Value,
field_name: &str
) -> Result<Option<AssetId>>
Auto Trait Implementations§
impl RefUnwindSafe for JsonDeserializer
impl Send for JsonDeserializer
impl Sync for JsonDeserializer
impl Unpin for JsonDeserializer
impl UnwindSafe for JsonDeserializer
Blanket Implementations§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request