#[repr(C)]pub struct DynamicValueVTable {Show 28 fields
pub set_null: DynSetNullFn,
pub set_bool: DynSetBoolFn,
pub set_i64: DynSetI64Fn,
pub set_u64: DynSetU64Fn,
pub set_f64: DynSetF64Fn,
pub set_str: DynSetStrFn,
pub set_bytes: Option<DynSetBytesFn>,
pub set_datetime: Option<DynSetDateTimeFn>,
pub begin_array: DynBeginArrayFn,
pub push_array_element: DynPushArrayElementFn,
pub end_array: Option<DynEndArrayFn>,
pub begin_object: DynBeginObjectFn,
pub insert_object_entry: DynInsertObjectEntryFn,
pub end_object: Option<DynEndObjectFn>,
pub get_kind: DynGetKindFn,
pub get_bool: DynGetBoolFn,
pub get_i64: DynGetI64Fn,
pub get_u64: DynGetU64Fn,
pub get_f64: DynGetF64Fn,
pub get_str: DynGetStrFn,
pub get_bytes: Option<DynGetBytesFn>,
pub get_datetime: Option<DynGetDateTimeFn>,
pub array_len: DynArrayLenFn,
pub array_get: DynArrayGetFn,
pub object_len: DynObjectLenFn,
pub object_get_entry: DynObjectGetEntryFn,
pub object_get: DynObjectGetFn,
pub object_get_mut: Option<DynObjectGetMutFn>,
}Expand description
Virtual table for dynamic value types.
This provides all the operations needed to build and read dynamic values without knowing their concrete type at compile time.
Fields§
§set_null: DynSetNullFnSet to null
set_bool: DynSetBoolFnSet to boolean
set_i64: DynSetI64FnSet to i64
set_u64: DynSetU64FnSet to u64
set_f64: DynSetF64FnSet to f64 (returns false if value not representable)
set_str: DynSetStrFnSet to string
set_bytes: Option<DynSetBytesFn>Set to bytes (optional - not all dynamic value types support bytes)
set_datetime: Option<DynSetDateTimeFn>Set to datetime (optional - not all dynamic value types support datetime)
begin_array: DynBeginArrayFnInitialize as empty array
push_array_element: DynPushArrayElementFnPush element to array
end_array: Option<DynEndArrayFn>Finalize array (optional)
begin_object: DynBeginObjectFnInitialize as empty object
insert_object_entry: DynInsertObjectEntryFnInsert key-value pair
end_object: Option<DynEndObjectFn>Finalize object (optional)
get_kind: DynGetKindFnGet the kind of value
get_bool: DynGetBoolFnGet bool value
get_i64: DynGetI64FnGet i64 value
get_u64: DynGetU64FnGet u64 value
get_f64: DynGetF64FnGet f64 value
get_str: DynGetStrFnGet string reference
get_bytes: Option<DynGetBytesFn>Get bytes reference
get_datetime: Option<DynGetDateTimeFn>Get datetime components
array_len: DynArrayLenFnGet array length
array_get: DynArrayGetFnGet array element by index
object_len: DynObjectLenFnGet object length
object_get_entry: DynObjectGetEntryFnGet object entry by index
object_get: DynObjectGetFnGet object value by key
object_get_mut: Option<DynObjectGetMutFn>Get mutable reference to object value by key (for navigating into existing entries)
Trait Implementations§
Source§impl Clone for DynamicValueVTable
impl Clone for DynamicValueVTable
Source§fn clone(&self) -> DynamicValueVTable
fn clone(&self) -> DynamicValueVTable
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more