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 Freeze for JsonDeserializer
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> 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> 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