pub struct JsonValueWithSchema {
pub value: Value,
pub sync_type: Type,
}Expand description
JSON value paired with schema information for type-aware conversion.
Fields§
§value: ValueThe JSON value.
sync_type: TypeThe expected sync type for conversion.
Implementations§
Source§impl JsonValueWithSchema
impl JsonValueWithSchema
Sourcepub fn to_typed_value(&self) -> TypedValue
pub fn to_typed_value(&self) -> TypedValue
Convert to TypedValue.
Trait Implementations§
Source§impl Clone for JsonValueWithSchema
impl Clone for JsonValueWithSchema
Source§fn clone(&self) -> JsonValueWithSchema
fn clone(&self) -> JsonValueWithSchema
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for JsonValueWithSchema
impl Debug for JsonValueWithSchema
Source§impl From<JsonValueWithSchema> for TypedValue
impl From<JsonValueWithSchema> for TypedValue
Source§fn from(jv: JsonValueWithSchema) -> Self
fn from(jv: JsonValueWithSchema) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for JsonValueWithSchema
impl RefUnwindSafe for JsonValueWithSchema
impl Send for JsonValueWithSchema
impl Sync for JsonValueWithSchema
impl Unpin for JsonValueWithSchema
impl UnsafeUnpin for JsonValueWithSchema
impl UnwindSafe for JsonValueWithSchema
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