pub struct MultiValues { /* private fields */ }Expand description
Multiple typed runtime values with private storage representation.
§Examples
use qubit_value::MultiValues;
let values = MultiValues::from(vec![1_i32, 2, 3]);
assert_eq!(values.get_int32s().unwrap(), &[1, 2, 3]);Implementations§
Source§impl MultiValues
impl MultiValues
Sourcepub fn BigInteger(values: Vec<BigInt>) -> Self
pub fn BigInteger(values: Vec<BigInt>) -> Self
Sourcepub fn BigDecimal(values: Vec<BigDecimal>) -> Self
pub fn BigDecimal(values: Vec<BigDecimal>) -> Self
Sourcepub fn DateTime(values: Vec<NaiveDateTime>) -> Self
pub fn DateTime(values: Vec<NaiveDateTime>) -> Self
Source§impl MultiValues
impl MultiValues
Sourcepub fn get_first_ref<'a, T: ?Sized>(&'a self) -> ValueResult<&'a T>
pub fn get_first_ref<'a, T: ?Sized>(&'a self) -> ValueResult<&'a T>
Strictly borrows the first stored item without allocating.
Sourcepub fn get_slice<'a, T>(&'a self) -> ValueResult<&'a [T]>
pub fn get_slice<'a, T>(&'a self) -> ValueResult<&'a [T]>
Strictly borrows the complete collection without allocating.
Sourcepub fn hash_with_json_budget<H, R, Q>(
&self,
state: &mut H,
budget: &mut JsonValueBudget<R, Q>,
) -> Result<(), MeasuredBudgetError<R, Q>>
pub fn hash_with_json_budget<H, R, Q>( &self, state: &mut H, budget: &mut JsonValueBudget<R, Q>, ) -> Result<(), MeasuredBudgetError<R, Q>>
Hashes this collection while applying budget to JSON elements.
§Type Parameters
H- Hasher receiving the semantic collection identity.R- Resource identifier used by the JSON budget.Q- Quantity type used by the JSON budget.
§Parameters
state- Hasher that receives the same identity representation asHash::hash.budget- Mutable JSON traversal budget, used only for JSON elements.
§Returns
Ok(()) after the complete semantic identity is hashed.
§Errors
Returns qubit_budget::MeasuredBudgetError when a JSON element
exceeds a configured limit.
On error, neither state nor the committed portion of budget is
modified. A hasher panic also drops the staged budget transaction.
§Examples
use std::collections::hash_map::DefaultHasher;
use qubit_budget::{ResourceLimit, StructureLimits};
use qubit_budget::json::{JsonResource, JsonValueBudget, JsonValueLimits};
use qubit_value::MultiValues;
let values = MultiValues::Json(vec![serde_json::json!([null])]);
let structure = StructureLimits::<JsonResource, usize>::builder().nodes_limit(
ResourceLimit::new(JsonResource::Nodes, 1_usize),
).build();
let mut budget = JsonValueBudget::new(
JsonValueLimits::builder().structure_limits(structure).build(),
);
let mut hasher = DefaultHasher::new();
assert!(values.hash_with_json_budget(&mut hasher, &mut budget).is_err());
drop(hasher);
// The rejected values did not consume committed budget state.Sourcepub fn view(&self) -> MultiValuesRef<'_>
pub fn view(&self) -> MultiValuesRef<'_>
Borrows the stable semantic view of this collection.
§Returns
A non-owning homogeneous view that hides private storage details.
Source§impl MultiValues
impl MultiValues
Sourcepub fn to_json_value(&self) -> ValueResult<Value>
pub fn to_json_value(&self) -> ValueResult<Value>
Projects this collection to its natural JSON representation.
Unset is null; every concrete collection is an array, including empty
and one-item collections.
§Returns
The natural JSON representation of this collection.
§Errors
Returns a list conversion error containing the zero-based source index when an item cannot be represented as JSON.
Sourcepub fn to_json_value_with(
&self,
policy: &ConversionPolicy,
limits: &ConversionLimits,
) -> ValueResult<Value>
pub fn to_json_value_with( &self, policy: &ConversionPolicy, limits: &ConversionLimits, ) -> ValueResult<Value>
Projects this collection using explicit conversion policy and limits.
§Parameters
policy- Controls duration units and precision-loss behavior.limits- Bounds conversion resource consumption.
§Returns
The natural JSON representation of this collection.
§Errors
Returns an indexed list conversion error when an item cannot be represented under the requested policy and limits.
Source§impl MultiValues
impl MultiValues
Sourcepub fn new<S>(values: S) -> Selfwhere
S: Into<Self>,
pub fn new<S>(values: S) -> Selfwhere
S: Into<Self>,
Generic constructor method
Creates MultiValues from any supported input form, avoiding direct
use of enum variants at call sites.
Supported input forms include single values, vectors, slices, arrays, borrowed vectors, and borrowed string collections for supported element types.
§Type Parameters
S- Input type convertible intoMultiValues.
§Parameters
values- Values to convert into a collection.
§Returns
Returns MultiValues wrapping the converted input values.
§Examples
use qubit_value::MultiValues;
// Basic types
let mv = MultiValues::new(vec![1, 2, 3]);
assert_eq!(mv.len(), 3);
// Strings
let mv = MultiValues::new(vec!["a".to_string(), "b".to_string()]);
assert_eq!(mv.len(), 2);Sourcepub fn get<T>(&self) -> ValueResult<Vec<T>>
pub fn get<T>(&self) -> ValueResult<Vec<T>>
Generic getter method for multiple values.
Performs a strict typed read of all stored values as Vec<T>.
§Type Parameters
T- The target element type to retrieve.
§Returns
Returns the list of values when the stored type matches T.
§Errors
Returns ValueError::Missing when the container is unset with the
requested type, or ValueError::TypeMismatch when the stored type
differs from T.
§Examples
use qubit_value::MultiValues;
let multi = MultiValues::Int32(vec![1, 2, 3]);
// Through type inference
let nums: Vec<i32> = multi.get().unwrap();
assert_eq!(nums, vec![1, 2, 3]);
// Explicitly specify type parameter
let nums = multi.get::<i32>().unwrap();
assert_eq!(nums, vec![1, 2, 3]);Sourcepub fn get_or<T>(
&self,
default: impl IntoValueDefault<Vec<T>>,
) -> ValueResult<Vec<T>>
pub fn get_or<T>( &self, default: impl IntoValueDefault<Vec<T>>, ) -> ValueResult<Vec<T>>
Generic getter method with a default value list.
Returns the supplied default only when this container is unset. A concrete empty vector remains an empty result.
§Type Parameters
T- Target element type for the strict read.
§Parameters
default- Lazily materialized list used only for unset storage.
§Returns
The concrete stored list, or default for unset storage.
§Errors
Returns ValueError::TypeMismatch when the stored type differs from
T.
Sourcepub fn get_or_else<T, F>(&self, default: F) -> ValueResult<Vec<T>>
pub fn get_or_else<T, F>(&self, default: F) -> ValueResult<Vec<T>>
Strictly reads all values or calls default only when storage is unset.
A concrete empty collection is returned unchanged and type mismatches are preserved without invoking the callback.
§Type Parameters
T- Target element type.F- Deferred fallback producing the complete list.
§Parameters
default- Callback invoked only for unset storage.
§Returns
The stored list or the callback result.
§Errors
Returns ValueError::TypeMismatch for an incompatible concrete
collection without invoking the callback.
Sourcepub fn get_first<T>(&self) -> ValueResult<T>where
for<'a> T: TryFrom<&'a Self, Error = ValueError>,
pub fn get_first<T>(&self) -> ValueResult<T>where
for<'a> T: TryFrom<&'a Self, Error = ValueError>,
Generic getter method for the first value
Reads the first stored value as T, performing strict type checking.
get_first<T>() does not do cross-type conversion. When the converter
feature is enabled, use to<T>() for compatible cross-type conversion.
§Type Parameters
T- The target element type to retrieve.
§Returns
Returns the first value when the stored type matches T and at least
one value exists.
§Errors
Returns ValueError::Missing when the requested type matches but no
value is stored, or ValueError::TypeMismatch when the stored type
differs from T.
§Examples
use qubit_value::MultiValues;
let multi = MultiValues::Int32(vec![42, 100, 200]);
// Through type inference
let first: i32 = multi.get_first().unwrap();
assert_eq!(first, 42);
// Explicitly specify type parameter
let first = multi.get_first::<i32>().unwrap();
assert_eq!(first, 42);
// String type
let multi = MultiValues::String(vec!["hello".to_string(), "world".to_string()]);
let first: String = multi.get_first().unwrap();
assert_eq!(first, "hello");Sourcepub fn get_first_or<T>(
&self,
default: impl IntoValueDefault<T>,
) -> ValueResult<T>where
for<'a> T: TryFrom<&'a Self, Error = ValueError>,
pub fn get_first_or<T>(
&self,
default: impl IntoValueDefault<T>,
) -> ValueResult<T>where
for<'a> T: TryFrom<&'a Self, Error = ValueError>,
Generic first-value getter with a default value.
Returns the supplied default only when the container is unset. A
concrete empty vector returns ValueError::Missing; type mismatches
are also preserved.
§Type Parameters
T- Target type for the strict first-item read.
§Parameters
default- Lazily materialized value used only for unset storage.
§Returns
The first concrete item, or default for unset storage.
§Errors
Returns ValueError::Missing for a concrete empty collection or
ValueError::TypeMismatch when the stored type differs from T.
Sourcepub fn get_first_or_else<T, F>(&self, default: F) -> ValueResult<T>
pub fn get_first_or_else<T, F>(&self, default: F) -> ValueResult<T>
Strictly reads the first value or calls default only when unset.
§Type Parameters
T- Target element type.F- Deferred fallback producing one element.
§Parameters
default- Callback invoked only for unset storage.
§Returns
The first stored item or the callback result.
§Errors
Preserves empty-collection and type-mismatch errors without invoking the callback.
Sourcepub fn set<S>(&mut self, values: S)where
S: Into<Self>,
pub fn set<S>(&mut self, values: S)where
S: Into<Self>,
Generic setter method
Replaces the entire list with the converted input values.
This operation updates the stored type to the input element type and does not validate runtime compatibility with the previous variant.
Supports any input that can be converted into MultiValues, including
single values, vectors, slices, arrays, and borrowed vectors for
supported element types.
Existing values are replaced, and the stored type becomes the converted input type.
§Type Parameters
S- Input type convertible intoMultiValues.
§Parameters
values- The values to set.
§Compile-time restriction
Unsupported input types fail to compile because they do not implement
Into<MultiValues>.
§Examples
use qubit_datatype::DataType;
use qubit_value::MultiValues;
// 1) Vec<T>
let mut mv = MultiValues::Unset(DataType::Int32);
mv.set(vec![42, 100, 200]);
assert_eq!(mv.get_int32s().unwrap(), &[42, 100, 200]);
// 2) &[T]
let mut mv = MultiValues::Unset(DataType::Int32);
let slice = &[7, 8, 9][..];
mv.set(slice);
assert_eq!(mv.get_int32s().unwrap(), &[7, 8, 9]);
// 3) Single T
let mut mv = MultiValues::Unset(DataType::Int32);
mv.set(42);
assert_eq!(mv.get_int32s().unwrap(), &[42]);
// String example
let mut mv = MultiValues::Unset(DataType::String);
mv.set(vec!["hello".to_string(), "world".to_string()]);
assert_eq!(mv.get_strings().unwrap(), &["hello", "world"]);Sourcepub fn add<S>(&mut self, values: S) -> ValueResult<()>where
S: Into<Self>,
pub fn add<S>(&mut self, values: S) -> ValueResult<()>where
S: Into<Self>,
Generic add method
Appends converted input values to the existing list with strict type checking.
Supports any input that can be converted into MultiValues, including
single values, vectors, slices, arrays, and borrowed vectors for
supported element types.
The converted input must have the same data type as the current container. An empty container keeps its declared type until non-empty values of the same type are appended.
§Type Parameters
S- Input type convertible intoMultiValues.
§Parameters
values- Values to append.
§Returns
Ok(()) after appending, including when the input is empty.
§Errors
Returns ValueError::TypeMismatch when the converted input data type
differs from the current container data type.
§Examples
use qubit_datatype::DataType;
use qubit_value::MultiValues;
// 1) Single T
let mut mv = MultiValues::Int32(vec![42]);
mv.add(100).unwrap();
assert_eq!(mv.get_int32s().unwrap(), &[42, 100]);
// 2) Vec<T>
mv.add(vec![200, 300]).unwrap();
assert_eq!(mv.get_int32s().unwrap(), &[42, 100, 200, 300]);
// 3) &[T]
let slice = &[400, 500][..];
mv.add(slice).unwrap();
assert_eq!(mv.get_int32s().unwrap(), &[42, 100, 200, 300, 400, 500]);Sourcepub fn len(&self) -> usize
pub fn len(&self) -> usize
Returns the number of values.
§Returns
The number of values contained in these multiple values. An unset collection has length zero.
§Examples
use qubit_datatype::DataType;
use qubit_value::MultiValues;
let values = MultiValues::Int32(vec![1, 2, 3]);
assert_eq!(values.len(), 3);
let empty = MultiValues::Unset(DataType::String);
assert_eq!(empty.len(), 0);Sourcepub fn is_empty(&self) -> bool
pub fn is_empty(&self) -> bool
Tests whether this collection contains no values.
An unset collection and a concrete empty vector both have length zero.
Use MultiValues::is_unset when the distinction between no collection
and a concrete empty collection matters.
§Returns
true when Self::len is zero; otherwise, false.
Sourcepub fn is_unset(&self) -> bool
pub fn is_unset(&self) -> bool
Tests whether this container has no concrete vector.
§Returns
Returns true only for MultiValues::Unset. A concrete empty vector
returns false.
§Examples
use qubit_datatype::DataType;
use qubit_value::MultiValues;
let values = MultiValues::Int32(vec![]);
assert!(!values.is_unset());
let empty = MultiValues::Unset(DataType::String);
assert!(empty.is_unset());Sourcepub fn is_numeric(&self) -> bool
pub fn is_numeric(&self) -> bool
Tests whether a concrete collection belongs to the numeric type family.
A concrete empty numeric vector returns true; an unset collection
returns false, even when its declared type is numeric.
§Returns
true for concrete collections with a numeric element type.
Sourcepub fn clear(&mut self)
pub fn clear(&mut self)
Clears all values while preserving a concrete collection and its type. An unset collection remains unset because it has no concrete vector to clear.
§Examples
use qubit_datatype::DataType;
use qubit_value::MultiValues;
let mut values = MultiValues::Int32(vec![1, 2, 3]);
values.clear();
assert_eq!(values.len(), 0);
assert_eq!(values.data_type(), DataType::Int32);Sourcepub fn set_type(&mut self, data_type: DataType)
pub fn set_type(&mut self, data_type: DataType)
Set the data type
If the new type differs from the current type, clears all values and sets the new type.
§Parameters
data_type- The data type to set
§Examples
use qubit_datatype::DataType;
use qubit_value::MultiValues;
let mut values = MultiValues::Int32(vec![1, 2, 3]);
values.set_type(DataType::String);
assert!(values.is_unset());
assert_eq!(values.data_type(), DataType::String);Sourcepub fn first_value(&self) -> Value
pub fn first_value(&self) -> Value
Sourcepub fn into_first_value(self) -> Value
pub fn into_first_value(self) -> Value
Consumes this collection and returns its first item as a Value.
Empty and unset collections become Value::Unset with the same data
type. Owned element storage is moved instead of cloned.
§Returns
The owned first item, or a typed unset value when no item exists.
Sourcepub fn merge(&mut self, other: &MultiValues) -> ValueResult<()>
pub fn merge(&mut self, other: &MultiValues) -> ValueResult<()>
Appends all values from another container with the same data type.
§Parameters
other- Collection whose values are cloned and appended.
§Returns
Ok(()) after appending, including when other is empty.
§Errors
Returns ValueError::TypeMismatch when other has a different data
type.
Source§impl MultiValues
impl MultiValues
Sourcepub fn to_first<T>(&self) -> ValueResult<T>where
T: DataConversionTarget,
pub fn to_first<T>(&self) -> ValueResult<T>where
T: DataConversionTarget,
Converts the first stored value to T.
Unlike Self::get_first, this method uses shared DataConverter
conversion rules instead of strict type matching. For example, a stored
String("1") can be converted to bool.
§Type Parameters
T- Target type.
§Returns
The converted first value.
§Errors
Returns a structured missing-value conversion error when the container
is unset, an empty-collection error for a concrete empty vector, or a
conversion error when the first value cannot be converted to T.
Sourcepub fn to_first_or<T>(
&self,
default: impl IntoValueDefault<T>,
) -> ValueResult<T>where
T: DataConversionTarget,
pub fn to_first_or<T>(
&self,
default: impl IntoValueDefault<T>,
) -> ValueResult<T>where
T: DataConversionTarget,
Converts the first stored value to T, or returns default when the
container is unset or conversion reports a missing value.
An unset collection can use the default. A concrete empty collection and a policy-missing collection item (including the first item) remain errors and do not use the default; ordinary conversion errors are also preserved.
§Type Parameters
T- Target type.
§Parameters
default- Value returned for unset storage or a policy-missing scalar; collection-item and ordinary conversion errors are returned.
§Returns
The converted first value, or default for unset or conversion-missing
storage.
§Errors
Returns an empty-collection error for a concrete empty vector, or a
conversion error when the first value cannot be converted to T.
Sourcepub fn to_first_or_else<T, F>(&self, default: F) -> ValueResult<T>where
T: DataConversionTarget,
F: FnOnce() -> T,
pub fn to_first_or_else<T, F>(&self, default: F) -> ValueResult<T>where
T: DataConversionTarget,
F: FnOnce() -> T,
Converts the first value or calls default when storage is unset or
conversion reports a missing value.
§Type Parameters
T- Target conversion type.F- Deferred fallback producingT.
§Parameters
default- Callback invoked for unset storage or a policy-missing scalar; it is not invoked for a missing collection item or ordinary conversion error.
§Returns
The converted first item or the callback result.
§Errors
Preserves empty-collection, policy-missing-item, and ordinary concrete-value conversion errors without invoking the callback.
Sourcepub fn to_first_with<T>(
&self,
policy: &ConversionPolicy,
limits: &ConversionLimits,
) -> ValueResult<T>where
T: DataConversionTarget,
pub fn to_first_with<T>(
&self,
policy: &ConversionPolicy,
limits: &ConversionLimits,
) -> ValueResult<T>where
T: DataConversionTarget,
Converts the first stored value to T using conversion policy and
limits.
Stored strings are collection items and are never split again by scalar string collection policy.
§Type Parameters
T- Target type.
§Parameters
policy- Conversion policy forwarded toqubit_datatype.limits- Conversion limits forwarded toqubit_datatype.
§Returns
The converted first value.
§Errors
Returns a structured missing-value conversion error when the container
is unset, an empty-collection error for a concrete empty vector, or a
conversion error when the first value cannot be converted to T.
Sourcepub fn to_first_in<T>(
&self,
session: &mut ConversionSession<'_>,
) -> ValueResult<T>where
T: DataConversionTarget,
pub fn to_first_in<T>(
&self,
session: &mut ConversionSession<'_>,
) -> ValueResult<T>where
T: DataConversionTarget,
Converts the first stored value using an existing conversion session.
§Type Parameters
T- Target element type supported by the shared conversion layer.
§Parameters
session- Caller-owned session providing policy, limits, and budget.
§Returns
The converted first element.
§Errors
Returns a structured missing, conversion, or budget error when the
first element cannot be produced as T.
Sourcepub fn to_first_or_with<T>(
&self,
default: impl IntoValueDefault<T>,
policy: &ConversionPolicy,
limits: &ConversionLimits,
) -> ValueResult<T>where
T: DataConversionTarget,
pub fn to_first_or_with<T>(
&self,
default: impl IntoValueDefault<T>,
policy: &ConversionPolicy,
limits: &ConversionLimits,
) -> ValueResult<T>where
T: DataConversionTarget,
Converts the first stored value to T using conversion policy and
limits, or returns default when storage is unset or conversion
reports a missing value.
§Type Parameters
T- Target conversion type.
§Parameters
default- Lazily materialized value used for unset storage or a conversion-missing result.policy- Conversion policy forwarded toqubit_datatype.limits- Conversion limits forwarded toqubit_datatype.
§Returns
The converted first item, or default for an unset collection or a
policy-missing scalar. A missing collection item, including index zero,
never uses the default.
§Errors
Returns an empty-collection error, a missing collection-item error, or an ordinary conversion error for concrete values that cannot be converted under the provided policy and limits. None invokes the fallback.
Sourcepub fn to_first_or_else_with<T, F>(
&self,
default: F,
policy: &ConversionPolicy,
limits: &ConversionLimits,
) -> ValueResult<T>where
T: DataConversionTarget,
F: FnOnce() -> T,
pub fn to_first_or_else_with<T, F>(
&self,
default: F,
policy: &ConversionPolicy,
limits: &ConversionLimits,
) -> ValueResult<T>where
T: DataConversionTarget,
F: FnOnce() -> T,
Converts the first value with the provided policy and limits, or calls
default when storage is unset or conversion reports a missing
value.
§Type Parameters
T- Target conversion type.F- Deferred fallback producingT.
§Parameters
default- Callback invoked for unset storage or a conversion-missing result.policy- Conversion policy forwarded to the shared converter.limits- Conversion limits forwarded to the shared converter.
§Returns
The converted first item or the callback result.
§Errors
Preserves concrete-value conversion errors, including policy-missing collection items, without invoking the callback.
Sourcepub fn to_list<T>(&self) -> ValueResult<Vec<T>>where
T: DataConversionTarget,
pub fn to_list<T>(&self) -> ValueResult<Vec<T>>where
T: DataConversionTarget,
Converts all stored values to T.
Unlike Self::get, this method uses shared DataConverter conversion
rules for every element instead of strict type matching. A concrete
empty vector returns an empty vector; an unset container reports a
missing-value conversion error.
§Type Parameters
T- Target element type.
§Returns
A vector containing all converted values in the original order.
§Errors
Returns the first conversion error encountered while converting an element.
Sourcepub fn to_list_or<T>(
&self,
default: impl IntoValueDefault<Vec<T>>,
) -> ValueResult<Vec<T>>where
T: DataConversionTarget,
pub fn to_list_or<T>(
&self,
default: impl IntoValueDefault<Vec<T>>,
) -> ValueResult<Vec<T>>where
T: DataConversionTarget,
Converts all stored values to T, or returns default when storage is
unset or conversion reports a missing value.
§Type Parameters
T- Target element type.
§Parameters
default- Lazily materialized list used for unset storage or a policy-missing scalar; collection-item and ordinary conversion errors are returned.
§Returns
All converted items, or default for an unset collection or a
policy-missing outer scalar. A policy-missing collection item and an
ordinary conversion error never use the default.
§Errors
Returns the first item conversion error for concrete storage. A policy-missing collection item is preserved and does not use the fallback.
Sourcepub fn to_list_or_else<T, F>(&self, default: F) -> ValueResult<Vec<T>>
pub fn to_list_or_else<T, F>(&self, default: F) -> ValueResult<Vec<T>>
Converts all values or calls default when storage is unset or
conversion reports a missing value.
§Type Parameters
T- Target element conversion type.F- Deferred fallback producing the complete list.
§Parameters
default- Callback invoked for unset storage or a policy-missing scalar; it is not invoked for a missing collection item or ordinary conversion error.
§Returns
The converted list or the callback result.
§Errors
Preserves concrete-value conversion errors, including policy-missing collection items, without invoking the callback.
Sourcepub fn to_list_with<T>(
&self,
policy: &ConversionPolicy,
limits: &ConversionLimits,
) -> ValueResult<Vec<T>>where
T: DataConversionTarget,
pub fn to_list_with<T>(
&self,
policy: &ConversionPolicy,
limits: &ConversionLimits,
) -> ValueResult<Vec<T>>where
T: DataConversionTarget,
Converts all stored values to T using conversion policy and limits.
Stored strings are collection items and are never split again by scalar string collection policy.
§Type Parameters
T- Target element type.
§Parameters
policy- Conversion policy forwarded toqubit_datatype.limits- Conversion limits forwarded toqubit_datatype.
§Returns
A vector containing all converted values in the original order.
§Errors
Returns the first conversion error encountered while converting an element.
Sourcepub fn to_list_in<T>(
&self,
session: &mut ConversionSession<'_>,
) -> ValueResult<Vec<T>>where
T: DataConversionTarget,
pub fn to_list_in<T>(
&self,
session: &mut ConversionSession<'_>,
) -> ValueResult<Vec<T>>where
T: DataConversionTarget,
Converts every stored value using an existing conversion session.
§Type Parameters
T- Target element type supported by the shared conversion layer.
§Parameters
session- Caller-owned session providing policy, limits, and budget.
§Returns
Converted elements in their original order.
§Errors
Returns the first structured missing, conversion, or budget error.
Sourcepub fn to_list_or_with<T>(
&self,
default: impl IntoValueDefault<Vec<T>>,
policy: &ConversionPolicy,
limits: &ConversionLimits,
) -> ValueResult<Vec<T>>where
T: DataConversionTarget,
pub fn to_list_or_with<T>(
&self,
default: impl IntoValueDefault<Vec<T>>,
policy: &ConversionPolicy,
limits: &ConversionLimits,
) -> ValueResult<Vec<T>>where
T: DataConversionTarget,
Converts all stored values to T using conversion policy and limits, or
returns default when storage is unset or conversion reports a
missing value.
§Type Parameters
T- Target element type.
§Parameters
default- Lazily materialized list used for unset storage or a conversion-missing result.policy- Conversion policy forwarded toqubit_datatype.limits- Conversion limits forwarded toqubit_datatype.
§Returns
All converted items, or default for an unset collection or a
policy-missing scalar. A missing collection item and an ordinary
conversion error never use the default.
§Errors
Returns the first item conversion error for concrete storage. Missing collection items and ordinary conversion errors are preserved.
Sourcepub fn to_list_or_else_with<T, F>(
&self,
default: F,
policy: &ConversionPolicy,
limits: &ConversionLimits,
) -> ValueResult<Vec<T>>
pub fn to_list_or_else_with<T, F>( &self, default: F, policy: &ConversionPolicy, limits: &ConversionLimits, ) -> ValueResult<Vec<T>>
Converts all values with the provided policy and limits, or calls
default when storage is unset or conversion reports a missing
value.
§Type Parameters
T- Target element conversion type.F- Deferred fallback producing the complete list.
§Parameters
default- Callback invoked for unset storage or a policy-missing scalar; it is not invoked for a missing collection item or ordinary conversion error.policy- Conversion policy forwarded to the shared converter.limits- Conversion limits forwarded to the shared converter.
§Returns
The converted list or the callback result.
§Errors
Preserves concrete-value conversion errors, including policy-missing collection items, without invoking the callback.
Source§impl MultiValues
impl MultiValues
Sourcepub fn get_first_bool(&self) -> ValueResult<bool>
pub fn get_first_bool(&self) -> ValueResult<bool>
Get the first boolean value.
§Returns
If types match and a value exists, returns the first boolean value; see # Errors.
§Examples
use qubit_value::MultiValues;
let values = MultiValues::Bool(vec![true, false]);
assert_eq!(values.get_first_bool().unwrap(), true);§Errors
Returns ValueError::Missing when the requested type matches
but no value is stored, or ValueError::TypeMismatch when
the stored data type differs.
Sourcepub fn get_first_char(&self) -> ValueResult<char>
pub fn get_first_char(&self) -> ValueResult<char>
Get the first character value
§Returns
If types match and a value exists, returns the first character value; see # Errors.
§Errors
Returns ValueError::Missing when the requested type matches
but no value is stored, or ValueError::TypeMismatch when
the stored data type differs.
Sourcepub fn get_first_int8(&self) -> ValueResult<i8>
pub fn get_first_int8(&self) -> ValueResult<i8>
Get the first int8 value
§Returns
If types match and a value exists, returns the first int8 value; see # Errors.
§Errors
Returns ValueError::Missing when the requested type matches
but no value is stored, or ValueError::TypeMismatch when
the stored data type differs.
Sourcepub fn get_first_int16(&self) -> ValueResult<i16>
pub fn get_first_int16(&self) -> ValueResult<i16>
Get the first int16 value
§Returns
If types match and a value exists, returns the first int16 value; see # Errors.
§Errors
Returns ValueError::Missing when the requested type matches
but no value is stored, or ValueError::TypeMismatch when
the stored data type differs.
Sourcepub fn get_first_int32(&self) -> ValueResult<i32>
pub fn get_first_int32(&self) -> ValueResult<i32>
Get the first int32 value
§Returns
If types match and a value exists, returns the first int32 value; see # Errors.
§Errors
Returns ValueError::Missing when the requested type matches
but no value is stored, or ValueError::TypeMismatch when
the stored data type differs.
Sourcepub fn get_first_int64(&self) -> ValueResult<i64>
pub fn get_first_int64(&self) -> ValueResult<i64>
Get the first int64 value
§Returns
If types match and a value exists, returns the first int64 value; see # Errors.
§Errors
Returns ValueError::Missing when the requested type matches
but no value is stored, or ValueError::TypeMismatch when
the stored data type differs.
Sourcepub fn get_first_int128(&self) -> ValueResult<i128>
pub fn get_first_int128(&self) -> ValueResult<i128>
Get the first int128 value
§Returns
If types match and a value exists, returns the first int128 value; see # Errors.
§Errors
Returns ValueError::Missing when the requested type matches
but no value is stored, or ValueError::TypeMismatch when
the stored data type differs.
Sourcepub fn get_first_uint8(&self) -> ValueResult<u8>
pub fn get_first_uint8(&self) -> ValueResult<u8>
Get the first uint8 value
§Returns
If types match and a value exists, returns the first uint8 value; see # Errors.
§Errors
Returns ValueError::Missing when the requested type matches
but no value is stored, or ValueError::TypeMismatch when
the stored data type differs.
Sourcepub fn get_first_uint16(&self) -> ValueResult<u16>
pub fn get_first_uint16(&self) -> ValueResult<u16>
Get the first uint16 value
§Returns
If types match and a value exists, returns the first uint16 value; see # Errors.
§Errors
Returns ValueError::Missing when the requested type matches
but no value is stored, or ValueError::TypeMismatch when
the stored data type differs.
Sourcepub fn get_first_uint32(&self) -> ValueResult<u32>
pub fn get_first_uint32(&self) -> ValueResult<u32>
Get the first uint32 value
§Returns
If types match and a value exists, returns the first uint32 value; see # Errors.
§Errors
Returns ValueError::Missing when the requested type matches
but no value is stored, or ValueError::TypeMismatch when
the stored data type differs.
Sourcepub fn get_first_uint64(&self) -> ValueResult<u64>
pub fn get_first_uint64(&self) -> ValueResult<u64>
Get the first uint64 value
§Returns
If types match and a value exists, returns the first uint64 value; see # Errors.
§Errors
Returns ValueError::Missing when the requested type matches
but no value is stored, or ValueError::TypeMismatch when
the stored data type differs.
Sourcepub fn get_first_uint128(&self) -> ValueResult<u128>
pub fn get_first_uint128(&self) -> ValueResult<u128>
Get the first uint128 value
§Returns
If types match and a value exists, returns the first uint128 value; see # Errors.
§Errors
Returns ValueError::Missing when the requested type matches
but no value is stored, or ValueError::TypeMismatch when
the stored data type differs.
Sourcepub fn get_first_float32(&self) -> ValueResult<f32>
pub fn get_first_float32(&self) -> ValueResult<f32>
Get the first float32 value
§Returns
If types match and a value exists, returns the first float32 value; see # Errors.
§Errors
Returns ValueError::Missing when the requested type matches
but no value is stored, or ValueError::TypeMismatch when
the stored data type differs.
Sourcepub fn get_first_float64(&self) -> ValueResult<f64>
pub fn get_first_float64(&self) -> ValueResult<f64>
Get the first float64 value
§Returns
If types match and a value exists, returns the first float64 value; see # Errors.
§Errors
Returns ValueError::Missing when the requested type matches
but no value is stored, or ValueError::TypeMismatch when
the stored data type differs.
Sourcepub fn get_first_string(&self) -> ValueResult<&str>
pub fn get_first_string(&self) -> ValueResult<&str>
Get the first string reference
§Returns
If types match and a value exists, returns a reference to the first
string; see # Errors.
§Errors
Returns ValueError::Missing when the requested type matches
but no value is stored, or ValueError::TypeMismatch when
the stored data type differs.
Sourcepub fn get_first_date(&self) -> ValueResult<NaiveDate>
pub fn get_first_date(&self) -> ValueResult<NaiveDate>
Get the first date value
§Returns
If types match and a value exists, returns the first date value; see # Errors.
§Errors
Returns ValueError::Missing when the requested type matches
but no value is stored, or ValueError::TypeMismatch when
the stored data type differs.
Sourcepub fn get_first_time(&self) -> ValueResult<NaiveTime>
pub fn get_first_time(&self) -> ValueResult<NaiveTime>
Get the first time value
§Returns
If types match and a value exists, returns the first time value; see # Errors.
§Errors
Returns ValueError::Missing when the requested type matches
but no value is stored, or ValueError::TypeMismatch when
the stored data type differs.
Sourcepub fn get_first_datetime(&self) -> ValueResult<NaiveDateTime>
pub fn get_first_datetime(&self) -> ValueResult<NaiveDateTime>
Get the first datetime value
§Returns
If types match and a value exists, returns the first datetime value; see # Errors.
§Errors
Returns ValueError::Missing when the requested type matches
but no value is stored, or ValueError::TypeMismatch when
the stored data type differs.
Sourcepub fn get_first_instant(&self) -> ValueResult<DateTime<Utc>>
pub fn get_first_instant(&self) -> ValueResult<DateTime<Utc>>
Get the first UTC instant value
§Returns
If types match and a value exists, returns the first UTC instant
value; see # Errors.
§Errors
Returns ValueError::Missing when the requested type matches
but no value is stored, or ValueError::TypeMismatch when
the stored data type differs.
Sourcepub fn get_first_biginteger(&self) -> ValueResult<BigInt>
pub fn get_first_biginteger(&self) -> ValueResult<BigInt>
Get the first big integer value
§Returns
If types match and a value exists, returns the first big integer
value; see # Errors.
§Errors
Returns ValueError::Missing when the requested type matches
but no value is stored, or ValueError::TypeMismatch when
the stored data type differs.
Sourcepub fn get_first_bigdecimal(&self) -> ValueResult<BigDecimal>
pub fn get_first_bigdecimal(&self) -> ValueResult<BigDecimal>
Get the first big decimal value
§Returns
If types match and a value exists, returns the first big decimal
value; see # Errors.
§Errors
Returns ValueError::Missing when the requested type matches
but no value is stored, or ValueError::TypeMismatch when
the stored data type differs.
Sourcepub fn get_first_duration(&self) -> ValueResult<Duration>
pub fn get_first_duration(&self) -> ValueResult<Duration>
Get the first Duration value
§Returns
The first duration when the stored type matches.
§Errors
Returns ValueError::Missing when the requested type matches
but no value is stored, or ValueError::TypeMismatch when
the stored data type differs.
Sourcepub fn get_first_url(&self) -> ValueResult<Url>
pub fn get_first_url(&self) -> ValueResult<Url>
Get the first Url value
§Returns
A clone of the first URL when the stored type matches.
§Errors
Returns ValueError::Missing when the requested type matches
but no value is stored, or ValueError::TypeMismatch when
the stored data type differs.
Sourcepub fn get_first_string_map(&self) -> ValueResult<HashMap<String, String>>
pub fn get_first_string_map(&self) -> ValueResult<HashMap<String, String>>
Get the first StringMap value
§Returns
A clone of the first string map when the stored type matches.
§Errors
Returns ValueError::Missing when the requested type matches
but no value is stored, or ValueError::TypeMismatch when
the stored data type differs.
Sourcepub fn get_first_json(&self) -> ValueResult<Value>
pub fn get_first_json(&self) -> ValueResult<Value>
Get the first Json value
§Returns
A clone of the first JSON value when the stored type matches.
§Errors
Returns ValueError::Missing when the requested type matches
but no value is stored, or ValueError::TypeMismatch when
the stored data type differs.
Sourcepub fn get_bools(&self) -> ValueResult<&[bool]>
pub fn get_bools(&self) -> ValueResult<&[bool]>
Get reference to all boolean values
§Returns
If types match, returns a reference to the boolean value array; see # Errors.
§Examples
use qubit_value::MultiValues;
let values = MultiValues::Bool(vec![true, false, true]);
assert_eq!(values.get_bools().unwrap(), &[true, false, true]);§Errors
Returns ValueError::Missing when the container is unset
with the requested type, or ValueError::TypeMismatch when
the stored data type differs. A concrete empty vector returns
an empty slice.
Sourcepub fn get_chars(&self) -> ValueResult<&[char]>
pub fn get_chars(&self) -> ValueResult<&[char]>
Get reference to all character values
§Returns
If types match, returns a reference to the character value array; see # Errors.
§Errors
Returns ValueError::Missing when the container is unset
with the requested type, or ValueError::TypeMismatch when
the stored data type differs. A concrete empty vector returns
an empty slice.
Sourcepub fn get_int8s(&self) -> ValueResult<&[i8]>
pub fn get_int8s(&self) -> ValueResult<&[i8]>
Get reference to all int8 values
§Returns
If types match, returns a reference to the int8 value array; see # Errors.
§Errors
Returns ValueError::Missing when the container is unset
with the requested type, or ValueError::TypeMismatch when
the stored data type differs. A concrete empty vector returns
an empty slice.
Sourcepub fn get_int16s(&self) -> ValueResult<&[i16]>
pub fn get_int16s(&self) -> ValueResult<&[i16]>
Get reference to all int16 values
§Returns
If types match, returns a reference to the int16 value array; see # Errors.
§Errors
Returns ValueError::Missing when the container is unset
with the requested type, or ValueError::TypeMismatch when
the stored data type differs. A concrete empty vector returns
an empty slice.
Sourcepub fn get_int32s(&self) -> ValueResult<&[i32]>
pub fn get_int32s(&self) -> ValueResult<&[i32]>
Get reference to all int32 values
§Returns
If types match, returns a reference to the int32 value array; see # Errors.
§Errors
Returns ValueError::Missing when the container is unset
with the requested type, or ValueError::TypeMismatch when
the stored data type differs. A concrete empty vector returns
an empty slice.
Sourcepub fn get_int64s(&self) -> ValueResult<&[i64]>
pub fn get_int64s(&self) -> ValueResult<&[i64]>
Get reference to all int64 values
§Returns
If types match, returns a reference to the int64 value array; see # Errors.
§Errors
Returns ValueError::Missing when the container is unset
with the requested type, or ValueError::TypeMismatch when
the stored data type differs. A concrete empty vector returns
an empty slice.
Sourcepub fn get_int128s(&self) -> ValueResult<&[i128]>
pub fn get_int128s(&self) -> ValueResult<&[i128]>
Get reference to all int128 values
§Returns
If types match, returns a reference to the int128 value array; see # Errors.
§Errors
Returns ValueError::Missing when the container is unset
with the requested type, or ValueError::TypeMismatch when
the stored data type differs. A concrete empty vector returns
an empty slice.
Sourcepub fn get_uint8s(&self) -> ValueResult<&[u8]>
pub fn get_uint8s(&self) -> ValueResult<&[u8]>
Get reference to all uint8 values
§Returns
If types match, returns a reference to the uint8 value array; see # Errors.
§Errors
Returns ValueError::Missing when the container is unset
with the requested type, or ValueError::TypeMismatch when
the stored data type differs. A concrete empty vector returns
an empty slice.
Sourcepub fn get_uint16s(&self) -> ValueResult<&[u16]>
pub fn get_uint16s(&self) -> ValueResult<&[u16]>
Get reference to all uint16 values
§Returns
If types match, returns a reference to the uint16 value array; see # Errors.
§Errors
Returns ValueError::Missing when the container is unset
with the requested type, or ValueError::TypeMismatch when
the stored data type differs. A concrete empty vector returns
an empty slice.
Sourcepub fn get_uint32s(&self) -> ValueResult<&[u32]>
pub fn get_uint32s(&self) -> ValueResult<&[u32]>
Get reference to all uint32 values
§Returns
If types match, returns a reference to the uint32 value array; see # Errors.
§Errors
Returns ValueError::Missing when the container is unset
with the requested type, or ValueError::TypeMismatch when
the stored data type differs. A concrete empty vector returns
an empty slice.
Sourcepub fn get_uint64s(&self) -> ValueResult<&[u64]>
pub fn get_uint64s(&self) -> ValueResult<&[u64]>
Get reference to all uint64 values
§Returns
If types match, returns a reference to the uint64 value array; see # Errors.
§Errors
Returns ValueError::Missing when the container is unset
with the requested type, or ValueError::TypeMismatch when
the stored data type differs. A concrete empty vector returns
an empty slice.
Sourcepub fn get_uint128s(&self) -> ValueResult<&[u128]>
pub fn get_uint128s(&self) -> ValueResult<&[u128]>
Get reference to all uint128 values
§Returns
If types match, returns a reference to the uint128 value array; see # Errors.
§Errors
Returns ValueError::Missing when the container is unset
with the requested type, or ValueError::TypeMismatch when
the stored data type differs. A concrete empty vector returns
an empty slice.
Sourcepub fn get_float32s(&self) -> ValueResult<&[f32]>
pub fn get_float32s(&self) -> ValueResult<&[f32]>
Get reference to all float32 values
§Returns
If types match, returns a reference to the float32 value array; see # Errors.
§Errors
Returns ValueError::Missing when the container is unset
with the requested type, or ValueError::TypeMismatch when
the stored data type differs. A concrete empty vector returns
an empty slice.
Sourcepub fn get_float64s(&self) -> ValueResult<&[f64]>
pub fn get_float64s(&self) -> ValueResult<&[f64]>
Get reference to all float64 values
§Returns
If types match, returns a reference to the float64 value array; see # Errors.
§Errors
Returns ValueError::Missing when the container is unset
with the requested type, or ValueError::TypeMismatch when
the stored data type differs. A concrete empty vector returns
an empty slice.
Sourcepub fn get_strings(&self) -> ValueResult<&[String]>
pub fn get_strings(&self) -> ValueResult<&[String]>
Get reference to all strings
§Returns
If types match, returns a reference to the string array; otherwise returns an error
§Errors
Returns ValueError::Missing when the container is unset
with the requested type, or ValueError::TypeMismatch when
the stored data type differs. A concrete empty vector returns
an empty slice.
Sourcepub fn get_dates(&self) -> ValueResult<&[NaiveDate]>
pub fn get_dates(&self) -> ValueResult<&[NaiveDate]>
Get reference to all date values
§Returns
If types match, returns a reference to the date value array; see # Errors.
§Errors
Returns ValueError::Missing when the container is unset
with the requested type, or ValueError::TypeMismatch when
the stored data type differs. A concrete empty vector returns
an empty slice.
Sourcepub fn get_times(&self) -> ValueResult<&[NaiveTime]>
pub fn get_times(&self) -> ValueResult<&[NaiveTime]>
Get reference to all time values
§Returns
If types match, returns a reference to the time value array; see # Errors.
§Errors
Returns ValueError::Missing when the container is unset
with the requested type, or ValueError::TypeMismatch when
the stored data type differs. A concrete empty vector returns
an empty slice.
Sourcepub fn get_datetimes(&self) -> ValueResult<&[NaiveDateTime]>
pub fn get_datetimes(&self) -> ValueResult<&[NaiveDateTime]>
Get reference to all datetime values
§Returns
If types match, returns a reference to the datetime value array; see # Errors.
§Errors
Returns ValueError::Missing when the container is unset
with the requested type, or ValueError::TypeMismatch when
the stored data type differs. A concrete empty vector returns
an empty slice.
Sourcepub fn get_instants(&self) -> ValueResult<&[DateTime<Utc>]>
pub fn get_instants(&self) -> ValueResult<&[DateTime<Utc>]>
Get reference to all UTC instant values
§Returns
If types match, returns a reference to the UTC instant value array; see # Errors.
§Errors
Returns ValueError::Missing when the container is unset
with the requested type, or ValueError::TypeMismatch when
the stored data type differs. A concrete empty vector returns
an empty slice.
Sourcepub fn get_bigintegers(&self) -> ValueResult<&[BigInt]>
pub fn get_bigintegers(&self) -> ValueResult<&[BigInt]>
Get reference to all big integers
§Returns
If types match, returns a reference to the big integer array; see # Errors.
§Errors
Returns ValueError::Missing when the container is unset
with the requested type, or ValueError::TypeMismatch when
the stored data type differs. A concrete empty vector returns
an empty slice.
Sourcepub fn get_bigdecimals(&self) -> ValueResult<&[BigDecimal]>
pub fn get_bigdecimals(&self) -> ValueResult<&[BigDecimal]>
Get reference to all big decimals
§Returns
If types match, returns a reference to the big decimal array; see # Errors.
§Errors
Returns ValueError::Missing when the container is unset
with the requested type, or ValueError::TypeMismatch when
the stored data type differs. A concrete empty vector returns
an empty slice.
Sourcepub fn get_durations(&self) -> ValueResult<&[Duration]>
pub fn get_durations(&self) -> ValueResult<&[Duration]>
Get reference to all Duration values
§Returns
A slice containing all stored durations.
§Errors
Returns ValueError::Missing when the container is unset
with the requested type, or ValueError::TypeMismatch when
the stored data type differs. A concrete empty vector returns
an empty slice.
Sourcepub fn get_urls(&self) -> ValueResult<&[Url]>
pub fn get_urls(&self) -> ValueResult<&[Url]>
Get reference to all Url values
§Returns
A reference to the vector containing all stored URLs.
§Errors
Returns ValueError::Missing when the container is unset
with the requested type, or ValueError::TypeMismatch when
the stored data type differs. A concrete empty vector returns
an empty slice.
Sourcepub fn get_string_maps(&self) -> ValueResult<&[HashMap<String, String>]>
pub fn get_string_maps(&self) -> ValueResult<&[HashMap<String, String>]>
Get reference to all StringMap values
§Returns
A reference to the vector containing all stored string maps.
§Errors
Returns ValueError::Missing when the container is unset
with the requested type, or ValueError::TypeMismatch when
the stored data type differs. A concrete empty vector returns
an empty slice.
Sourcepub fn get_jsons(&self) -> ValueResult<&[Value]>
pub fn get_jsons(&self) -> ValueResult<&[Value]>
Get reference to all Json values
§Returns
A reference to the vector containing all stored JSON values.
§Errors
Returns ValueError::Missing when the container is unset
with the requested type, or ValueError::TypeMismatch when
the stored data type differs. A concrete empty vector returns
an empty slice.
Trait Implementations§
Source§impl Clone for MultiValues
impl Clone for MultiValues
Source§fn clone(&self) -> MultiValues
fn clone(&self) -> MultiValues
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MultiValues
impl Debug for MultiValues
impl Eq for MultiValues
Source§impl<'a, 'b> From<&'a [&'b str]> for MultiValues
impl<'a, 'b> From<&'a [&'b str]> for MultiValues
Source§impl From<&Vec<BigDecimal>> for MultiValues
Available on crate feature big-decimal only.
impl From<&Vec<BigDecimal>> for MultiValues
big-decimal only.Source§fn from(values: &Vec<BigDecimal>) -> Self
fn from(values: &Vec<BigDecimal>) -> Self
Source§impl From<&Vec<NaiveDateTime>> for MultiValues
Available on crate feature chrono only.
impl From<&Vec<NaiveDateTime>> for MultiValues
chrono only.Source§fn from(values: &Vec<NaiveDateTime>) -> Self
fn from(values: &Vec<NaiveDateTime>) -> Self
Source§impl<const N: usize> From<&[BigDecimal; N]> for MultiValues
Available on crate feature big-decimal only.
impl<const N: usize> From<&[BigDecimal; N]> for MultiValues
big-decimal only.Source§fn from(values: &[BigDecimal; N]) -> Self
fn from(values: &[BigDecimal; N]) -> Self
Source§impl From<&[BigDecimal]> for MultiValues
Available on crate feature big-decimal only.
impl From<&[BigDecimal]> for MultiValues
big-decimal only.Source§fn from(values: &[BigDecimal]) -> Self
fn from(values: &[BigDecimal]) -> Self
Source§impl<const N: usize> From<&[BigInt; N]> for MultiValues
Available on crate feature big-integer only.
impl<const N: usize> From<&[BigInt; N]> for MultiValues
big-integer only.Source§impl From<&[BigInt]> for MultiValues
Available on crate feature big-integer only.
impl From<&[BigInt]> for MultiValues
big-integer only.Source§impl<const N: usize> From<&[DateTime<Utc>; N]> for MultiValues
Available on crate feature chrono only.
impl<const N: usize> From<&[DateTime<Utc>; N]> for MultiValues
chrono only.Source§impl From<&[Duration]> for MultiValues
impl From<&[Duration]> for MultiValues
Source§impl<const N: usize> From<&[NaiveDate; N]> for MultiValues
Available on crate feature chrono only.
impl<const N: usize> From<&[NaiveDate; N]> for MultiValues
chrono only.Source§impl<const N: usize> From<&[NaiveDateTime; N]> for MultiValues
Available on crate feature chrono only.
impl<const N: usize> From<&[NaiveDateTime; N]> for MultiValues
chrono only.Source§fn from(values: &[NaiveDateTime; N]) -> Self
fn from(values: &[NaiveDateTime; N]) -> Self
Source§impl From<&[NaiveDateTime]> for MultiValues
Available on crate feature chrono only.
impl From<&[NaiveDateTime]> for MultiValues
chrono only.Source§fn from(values: &[NaiveDateTime]) -> Self
fn from(values: &[NaiveDateTime]) -> Self
Source§impl From<&[NaiveDate]> for MultiValues
Available on crate feature chrono only.
impl From<&[NaiveDate]> for MultiValues
chrono only.Source§impl<const N: usize> From<&[NaiveTime; N]> for MultiValues
Available on crate feature chrono only.
impl<const N: usize> From<&[NaiveTime; N]> for MultiValues
chrono only.Source§impl From<&[NaiveTime]> for MultiValues
Available on crate feature chrono only.
impl From<&[NaiveTime]> for MultiValues
chrono only.Source§impl From<&[String]> for MultiValues
impl From<&[String]> for MultiValues
Source§impl From<&[Url]> for MultiValues
Available on crate feature url only.
impl From<&[Url]> for MultiValues
url only.Source§impl From<&[Value]> for MultiValues
Available on crate feature json only.
impl From<&[Value]> for MultiValues
json only.Source§impl From<&[bool]> for MultiValues
impl From<&[bool]> for MultiValues
Source§impl From<&[char]> for MultiValues
impl From<&[char]> for MultiValues
Source§impl From<&[f32]> for MultiValues
impl From<&[f32]> for MultiValues
Source§impl From<&[f64]> for MultiValues
impl From<&[f64]> for MultiValues
Source§impl From<&[i8]> for MultiValues
impl From<&[i8]> for MultiValues
Source§impl From<&[i16]> for MultiValues
impl From<&[i16]> for MultiValues
Source§impl From<&[i32]> for MultiValues
impl From<&[i32]> for MultiValues
Source§impl From<&[i64]> for MultiValues
impl From<&[i64]> for MultiValues
Source§impl From<&[i128]> for MultiValues
impl From<&[i128]> for MultiValues
Source§impl From<&[u8]> for MultiValues
impl From<&[u8]> for MultiValues
Source§impl From<&[u16]> for MultiValues
impl From<&[u16]> for MultiValues
Source§impl From<&[u32]> for MultiValues
impl From<&[u32]> for MultiValues
Source§impl From<&[u64]> for MultiValues
impl From<&[u64]> for MultiValues
Source§impl From<&[u128]> for MultiValues
impl From<&[u128]> for MultiValues
Source§impl From<&str> for MultiValues
impl From<&str> for MultiValues
Source§impl From<BigDecimal> for MultiValues
Available on crate feature big-decimal only.
impl From<BigDecimal> for MultiValues
big-decimal only.Source§fn from(value: BigDecimal) -> Self
fn from(value: BigDecimal) -> Self
Source§impl From<BigInt> for MultiValues
Available on crate feature big-integer only.
impl From<BigInt> for MultiValues
big-integer only.Source§impl From<Duration> for MultiValues
impl From<Duration> for MultiValues
Source§impl From<MultiValues> for ValueContainer
impl From<MultiValues> for ValueContainer
Source§fn from(values: MultiValues) -> Self
fn from(values: MultiValues) -> Self
Source§impl From<NaiveDate> for MultiValues
Available on crate feature chrono only.
impl From<NaiveDate> for MultiValues
chrono only.Source§impl From<NaiveDateTime> for MultiValues
Available on crate feature chrono only.
impl From<NaiveDateTime> for MultiValues
chrono only.Source§fn from(value: NaiveDateTime) -> Self
fn from(value: NaiveDateTime) -> Self
Source§impl From<NaiveTime> for MultiValues
Available on crate feature chrono only.
impl From<NaiveTime> for MultiValues
chrono only.Source§impl From<String> for MultiValues
impl From<String> for MultiValues
Source§impl From<Url> for MultiValues
Available on crate feature url only.
impl From<Url> for MultiValues
url only.Source§impl From<Value> for MultiValues
impl From<Value> for MultiValues
Source§impl From<Value> for MultiValues
Available on crate feature json only.
impl From<Value> for MultiValues
json only.Source§impl From<Vec<BigDecimal>> for MultiValues
Available on crate feature big-decimal only.
impl From<Vec<BigDecimal>> for MultiValues
big-decimal only.Source§fn from(values: Vec<BigDecimal>) -> Self
fn from(values: Vec<BigDecimal>) -> Self
Source§impl From<Vec<NaiveDateTime>> for MultiValues
Available on crate feature chrono only.
impl From<Vec<NaiveDateTime>> for MultiValues
chrono only.Source§fn from(values: Vec<NaiveDateTime>) -> Self
fn from(values: Vec<NaiveDateTime>) -> Self
Source§impl<const N: usize> From<[BigDecimal; N]> for MultiValues
Available on crate feature big-decimal only.
impl<const N: usize> From<[BigDecimal; N]> for MultiValues
big-decimal only.Source§fn from(values: [BigDecimal; N]) -> Self
fn from(values: [BigDecimal; N]) -> Self
Source§impl<const N: usize> From<[BigInt; N]> for MultiValues
Available on crate feature big-integer only.
impl<const N: usize> From<[BigInt; N]> for MultiValues
big-integer only.Source§impl<const N: usize> From<[DateTime<Utc>; N]> for MultiValues
Available on crate feature chrono only.
impl<const N: usize> From<[DateTime<Utc>; N]> for MultiValues
chrono only.Source§impl<const N: usize> From<[NaiveDate; N]> for MultiValues
Available on crate feature chrono only.
impl<const N: usize> From<[NaiveDate; N]> for MultiValues
chrono only.Source§impl<const N: usize> From<[NaiveDateTime; N]> for MultiValues
Available on crate feature chrono only.
impl<const N: usize> From<[NaiveDateTime; N]> for MultiValues
chrono only.Source§fn from(values: [NaiveDateTime; N]) -> Self
fn from(values: [NaiveDateTime; N]) -> Self
Source§impl<const N: usize> From<[NaiveTime; N]> for MultiValues
Available on crate feature chrono only.
impl<const N: usize> From<[NaiveTime; N]> for MultiValues
chrono only.Source§impl From<bool> for MultiValues
impl From<bool> for MultiValues
Source§impl From<char> for MultiValues
impl From<char> for MultiValues
Source§impl From<f32> for MultiValues
impl From<f32> for MultiValues
Source§impl From<f64> for MultiValues
impl From<f64> for MultiValues
Source§impl From<i8> for MultiValues
impl From<i8> for MultiValues
Source§impl From<i16> for MultiValues
impl From<i16> for MultiValues
Source§impl From<i32> for MultiValues
impl From<i32> for MultiValues
Source§impl From<i64> for MultiValues
impl From<i64> for MultiValues
Source§impl From<i128> for MultiValues
impl From<i128> for MultiValues
Source§impl From<u8> for MultiValues
impl From<u8> for MultiValues
Source§impl From<u16> for MultiValues
impl From<u16> for MultiValues
Source§impl From<u32> for MultiValues
impl From<u32> for MultiValues
Source§impl From<u64> for MultiValues
impl From<u64> for MultiValues
Source§impl From<u128> for MultiValues
impl From<u128> for MultiValues
Source§impl Hash for MultiValues
impl Hash for MultiValues
Source§impl PartialEq for MultiValues
impl PartialEq for MultiValues
Source§impl Redact for MultiValues
impl Redact for MultiValues
Source§fn write_redacted(&self, writer: &mut RedactionWriter<'_>)
fn write_redacted(&self, writer: &mut RedactionWriter<'_>)
Writes a typed collection through the shared structured writer.
Source§impl<'a> TryFrom<&'a MultiValues> for &'a bool
impl<'a> TryFrom<&'a MultiValues> for &'a bool
Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Source§impl<'a> TryFrom<&'a MultiValues> for &'a [bool]
impl<'a> TryFrom<&'a MultiValues> for &'a [bool]
Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Source§impl<'a> TryFrom<&'a MultiValues> for &'a char
impl<'a> TryFrom<&'a MultiValues> for &'a char
Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Source§impl<'a> TryFrom<&'a MultiValues> for &'a [char]
impl<'a> TryFrom<&'a MultiValues> for &'a [char]
Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Source§impl<'a> TryFrom<&'a MultiValues> for &'a i8
impl<'a> TryFrom<&'a MultiValues> for &'a i8
Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Source§impl<'a> TryFrom<&'a MultiValues> for &'a [i8]
impl<'a> TryFrom<&'a MultiValues> for &'a [i8]
Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Source§impl<'a> TryFrom<&'a MultiValues> for &'a i16
impl<'a> TryFrom<&'a MultiValues> for &'a i16
Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Source§impl<'a> TryFrom<&'a MultiValues> for &'a [i16]
impl<'a> TryFrom<&'a MultiValues> for &'a [i16]
Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Source§impl<'a> TryFrom<&'a MultiValues> for &'a i32
impl<'a> TryFrom<&'a MultiValues> for &'a i32
Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Source§impl<'a> TryFrom<&'a MultiValues> for &'a [i32]
impl<'a> TryFrom<&'a MultiValues> for &'a [i32]
Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Source§impl<'a> TryFrom<&'a MultiValues> for &'a i64
impl<'a> TryFrom<&'a MultiValues> for &'a i64
Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Source§impl<'a> TryFrom<&'a MultiValues> for &'a [i64]
impl<'a> TryFrom<&'a MultiValues> for &'a [i64]
Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Source§impl<'a> TryFrom<&'a MultiValues> for &'a i128
impl<'a> TryFrom<&'a MultiValues> for &'a i128
Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Source§impl<'a> TryFrom<&'a MultiValues> for &'a [i128]
impl<'a> TryFrom<&'a MultiValues> for &'a [i128]
Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Source§impl<'a> TryFrom<&'a MultiValues> for &'a u8
impl<'a> TryFrom<&'a MultiValues> for &'a u8
Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Source§impl<'a> TryFrom<&'a MultiValues> for &'a [u8]
impl<'a> TryFrom<&'a MultiValues> for &'a [u8]
Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Source§impl<'a> TryFrom<&'a MultiValues> for &'a u16
impl<'a> TryFrom<&'a MultiValues> for &'a u16
Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Source§impl<'a> TryFrom<&'a MultiValues> for &'a [u16]
impl<'a> TryFrom<&'a MultiValues> for &'a [u16]
Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Source§impl<'a> TryFrom<&'a MultiValues> for &'a u32
impl<'a> TryFrom<&'a MultiValues> for &'a u32
Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Source§impl<'a> TryFrom<&'a MultiValues> for &'a [u32]
impl<'a> TryFrom<&'a MultiValues> for &'a [u32]
Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Source§impl<'a> TryFrom<&'a MultiValues> for &'a u64
impl<'a> TryFrom<&'a MultiValues> for &'a u64
Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Source§impl<'a> TryFrom<&'a MultiValues> for &'a [u64]
impl<'a> TryFrom<&'a MultiValues> for &'a [u64]
Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Source§impl<'a> TryFrom<&'a MultiValues> for &'a u128
impl<'a> TryFrom<&'a MultiValues> for &'a u128
Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Source§impl<'a> TryFrom<&'a MultiValues> for &'a [u128]
impl<'a> TryFrom<&'a MultiValues> for &'a [u128]
Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Source§impl<'a> TryFrom<&'a MultiValues> for &'a f32
impl<'a> TryFrom<&'a MultiValues> for &'a f32
Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Source§impl<'a> TryFrom<&'a MultiValues> for &'a [f32]
impl<'a> TryFrom<&'a MultiValues> for &'a [f32]
Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Source§impl<'a> TryFrom<&'a MultiValues> for &'a f64
impl<'a> TryFrom<&'a MultiValues> for &'a f64
Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Source§impl<'a> TryFrom<&'a MultiValues> for &'a [f64]
impl<'a> TryFrom<&'a MultiValues> for &'a [f64]
Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Source§impl<'a> TryFrom<&'a MultiValues> for &'a BigInt
Available on crate feature big-integer only.
impl<'a> TryFrom<&'a MultiValues> for &'a BigInt
big-integer only.Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Source§impl<'a> TryFrom<&'a MultiValues> for &'a [BigInt]
Available on crate feature big-integer only.
impl<'a> TryFrom<&'a MultiValues> for &'a [BigInt]
big-integer only.Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Source§impl<'a> TryFrom<&'a MultiValues> for &'a BigDecimal
Available on crate feature big-decimal only.
impl<'a> TryFrom<&'a MultiValues> for &'a BigDecimal
big-decimal only.Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Source§impl<'a> TryFrom<&'a MultiValues> for &'a [BigDecimal]
Available on crate feature big-decimal only.
impl<'a> TryFrom<&'a MultiValues> for &'a [BigDecimal]
big-decimal only.Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Source§impl<'a> TryFrom<&'a MultiValues> for &'a String
impl<'a> TryFrom<&'a MultiValues> for &'a String
Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Source§impl<'a> TryFrom<&'a MultiValues> for &'a [String]
impl<'a> TryFrom<&'a MultiValues> for &'a [String]
Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Source§impl<'a> TryFrom<&'a MultiValues> for &'a NaiveDate
Available on crate feature chrono only.
impl<'a> TryFrom<&'a MultiValues> for &'a NaiveDate
chrono only.Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Source§impl<'a> TryFrom<&'a MultiValues> for &'a [NaiveDate]
Available on crate feature chrono only.
impl<'a> TryFrom<&'a MultiValues> for &'a [NaiveDate]
chrono only.Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Source§impl<'a> TryFrom<&'a MultiValues> for &'a NaiveTime
Available on crate feature chrono only.
impl<'a> TryFrom<&'a MultiValues> for &'a NaiveTime
chrono only.Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Source§impl<'a> TryFrom<&'a MultiValues> for &'a [NaiveTime]
Available on crate feature chrono only.
impl<'a> TryFrom<&'a MultiValues> for &'a [NaiveTime]
chrono only.Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Source§impl<'a> TryFrom<&'a MultiValues> for &'a NaiveDateTime
Available on crate feature chrono only.
impl<'a> TryFrom<&'a MultiValues> for &'a NaiveDateTime
chrono only.Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Source§impl<'a> TryFrom<&'a MultiValues> for &'a [NaiveDateTime]
Available on crate feature chrono only.
impl<'a> TryFrom<&'a MultiValues> for &'a [NaiveDateTime]
chrono only.Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Source§impl<'a> TryFrom<&'a MultiValues> for &'a DateTime<Utc>
Available on crate feature chrono only.
impl<'a> TryFrom<&'a MultiValues> for &'a DateTime<Utc>
chrono only.Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Source§impl<'a> TryFrom<&'a MultiValues> for &'a [DateTime<Utc>]
Available on crate feature chrono only.
impl<'a> TryFrom<&'a MultiValues> for &'a [DateTime<Utc>]
chrono only.Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Source§impl<'a> TryFrom<&'a MultiValues> for &'a Duration
impl<'a> TryFrom<&'a MultiValues> for &'a Duration
Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Source§impl<'a> TryFrom<&'a MultiValues> for &'a [Duration]
impl<'a> TryFrom<&'a MultiValues> for &'a [Duration]
Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Source§impl<'a> TryFrom<&'a MultiValues> for &'a Url
Available on crate feature url only.
impl<'a> TryFrom<&'a MultiValues> for &'a Url
url only.Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Source§impl<'a> TryFrom<&'a MultiValues> for &'a [Url]
Available on crate feature url only.
impl<'a> TryFrom<&'a MultiValues> for &'a [Url]
url only.Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Source§impl<'a> TryFrom<&'a MultiValues> for &'a HashMap<String, String>
impl<'a> TryFrom<&'a MultiValues> for &'a HashMap<String, String>
Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Source§impl<'a> TryFrom<&'a MultiValues> for &'a [HashMap<String, String>]
impl<'a> TryFrom<&'a MultiValues> for &'a [HashMap<String, String>]
Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Source§impl<'a> TryFrom<&'a MultiValues> for &'a Value
Available on crate feature json only.
impl<'a> TryFrom<&'a MultiValues> for &'a Value
json only.Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Source§impl<'a> TryFrom<&'a MultiValues> for &'a [Value]
Available on crate feature json only.
impl<'a> TryFrom<&'a MultiValues> for &'a [Value]
json only.Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Source§impl<'a> TryFrom<&'a MultiValues> for &'a str
impl<'a> TryFrom<&'a MultiValues> for &'a str
Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Source§impl<'a> TryFrom<&'a MultiValues> for ValueWirePayloadRefV1<'a>
impl<'a> TryFrom<&'a MultiValues> for ValueWirePayloadRefV1<'a>
Source§fn try_from(values: &'a MultiValues) -> Result<Self, Self::Error>
fn try_from(values: &'a MultiValues) -> Result<Self, Self::Error>
Borrows and validates a collection.
Source§type Error = ValueWireEncodeError
type Error = ValueWireEncodeError
Source§impl<'a> TryFrom<&'a MultiValues> for ValueWireRefV1<'a>
impl<'a> TryFrom<&'a MultiValues> for ValueWireRefV1<'a>
Source§fn try_from(values: &'a MultiValues) -> Result<Self, Self::Error>
fn try_from(values: &'a MultiValues) -> Result<Self, Self::Error>
Borrows and validates a collection.
Source§type Error = ValueWireEncodeError
type Error = ValueWireEncodeError
Source§impl TryFrom<&MultiValues> for bool
impl TryFrom<&MultiValues> for bool
Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &MultiValues) -> ValueResult<bool>
fn try_from(values: &MultiValues) -> ValueResult<bool>
Source§impl TryFrom<&MultiValues> for Vec<bool>
impl TryFrom<&MultiValues> for Vec<bool>
Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &MultiValues) -> ValueResult<Vec<bool>>
fn try_from(values: &MultiValues) -> ValueResult<Vec<bool>>
Source§impl TryFrom<&MultiValues> for char
impl TryFrom<&MultiValues> for char
Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &MultiValues) -> ValueResult<char>
fn try_from(values: &MultiValues) -> ValueResult<char>
Source§impl TryFrom<&MultiValues> for Vec<char>
impl TryFrom<&MultiValues> for Vec<char>
Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &MultiValues) -> ValueResult<Vec<char>>
fn try_from(values: &MultiValues) -> ValueResult<Vec<char>>
Source§impl TryFrom<&MultiValues> for i8
impl TryFrom<&MultiValues> for i8
Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &MultiValues) -> ValueResult<i8>
fn try_from(values: &MultiValues) -> ValueResult<i8>
Source§impl TryFrom<&MultiValues> for Vec<i8>
impl TryFrom<&MultiValues> for Vec<i8>
Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &MultiValues) -> ValueResult<Vec<i8>>
fn try_from(values: &MultiValues) -> ValueResult<Vec<i8>>
Source§impl TryFrom<&MultiValues> for i16
impl TryFrom<&MultiValues> for i16
Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &MultiValues) -> ValueResult<i16>
fn try_from(values: &MultiValues) -> ValueResult<i16>
Source§impl TryFrom<&MultiValues> for Vec<i16>
impl TryFrom<&MultiValues> for Vec<i16>
Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &MultiValues) -> ValueResult<Vec<i16>>
fn try_from(values: &MultiValues) -> ValueResult<Vec<i16>>
Source§impl TryFrom<&MultiValues> for i32
impl TryFrom<&MultiValues> for i32
Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &MultiValues) -> ValueResult<i32>
fn try_from(values: &MultiValues) -> ValueResult<i32>
Source§impl TryFrom<&MultiValues> for Vec<i32>
impl TryFrom<&MultiValues> for Vec<i32>
Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &MultiValues) -> ValueResult<Vec<i32>>
fn try_from(values: &MultiValues) -> ValueResult<Vec<i32>>
Source§impl TryFrom<&MultiValues> for i64
impl TryFrom<&MultiValues> for i64
Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &MultiValues) -> ValueResult<i64>
fn try_from(values: &MultiValues) -> ValueResult<i64>
Source§impl TryFrom<&MultiValues> for Vec<i64>
impl TryFrom<&MultiValues> for Vec<i64>
Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &MultiValues) -> ValueResult<Vec<i64>>
fn try_from(values: &MultiValues) -> ValueResult<Vec<i64>>
Source§impl TryFrom<&MultiValues> for i128
impl TryFrom<&MultiValues> for i128
Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &MultiValues) -> ValueResult<i128>
fn try_from(values: &MultiValues) -> ValueResult<i128>
Source§impl TryFrom<&MultiValues> for Vec<i128>
impl TryFrom<&MultiValues> for Vec<i128>
Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &MultiValues) -> ValueResult<Vec<i128>>
fn try_from(values: &MultiValues) -> ValueResult<Vec<i128>>
Source§impl TryFrom<&MultiValues> for u8
impl TryFrom<&MultiValues> for u8
Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &MultiValues) -> ValueResult<u8>
fn try_from(values: &MultiValues) -> ValueResult<u8>
Source§impl TryFrom<&MultiValues> for Vec<u8>
impl TryFrom<&MultiValues> for Vec<u8>
Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &MultiValues) -> ValueResult<Vec<u8>>
fn try_from(values: &MultiValues) -> ValueResult<Vec<u8>>
Source§impl TryFrom<&MultiValues> for u16
impl TryFrom<&MultiValues> for u16
Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &MultiValues) -> ValueResult<u16>
fn try_from(values: &MultiValues) -> ValueResult<u16>
Source§impl TryFrom<&MultiValues> for Vec<u16>
impl TryFrom<&MultiValues> for Vec<u16>
Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &MultiValues) -> ValueResult<Vec<u16>>
fn try_from(values: &MultiValues) -> ValueResult<Vec<u16>>
Source§impl TryFrom<&MultiValues> for u32
impl TryFrom<&MultiValues> for u32
Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &MultiValues) -> ValueResult<u32>
fn try_from(values: &MultiValues) -> ValueResult<u32>
Source§impl TryFrom<&MultiValues> for Vec<u32>
impl TryFrom<&MultiValues> for Vec<u32>
Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &MultiValues) -> ValueResult<Vec<u32>>
fn try_from(values: &MultiValues) -> ValueResult<Vec<u32>>
Source§impl TryFrom<&MultiValues> for u64
impl TryFrom<&MultiValues> for u64
Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &MultiValues) -> ValueResult<u64>
fn try_from(values: &MultiValues) -> ValueResult<u64>
Source§impl TryFrom<&MultiValues> for Vec<u64>
impl TryFrom<&MultiValues> for Vec<u64>
Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &MultiValues) -> ValueResult<Vec<u64>>
fn try_from(values: &MultiValues) -> ValueResult<Vec<u64>>
Source§impl TryFrom<&MultiValues> for u128
impl TryFrom<&MultiValues> for u128
Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &MultiValues) -> ValueResult<u128>
fn try_from(values: &MultiValues) -> ValueResult<u128>
Source§impl TryFrom<&MultiValues> for Vec<u128>
impl TryFrom<&MultiValues> for Vec<u128>
Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &MultiValues) -> ValueResult<Vec<u128>>
fn try_from(values: &MultiValues) -> ValueResult<Vec<u128>>
Source§impl TryFrom<&MultiValues> for f32
impl TryFrom<&MultiValues> for f32
Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &MultiValues) -> ValueResult<f32>
fn try_from(values: &MultiValues) -> ValueResult<f32>
Source§impl TryFrom<&MultiValues> for Vec<f32>
impl TryFrom<&MultiValues> for Vec<f32>
Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &MultiValues) -> ValueResult<Vec<f32>>
fn try_from(values: &MultiValues) -> ValueResult<Vec<f32>>
Source§impl TryFrom<&MultiValues> for f64
impl TryFrom<&MultiValues> for f64
Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &MultiValues) -> ValueResult<f64>
fn try_from(values: &MultiValues) -> ValueResult<f64>
Source§impl TryFrom<&MultiValues> for Vec<f64>
impl TryFrom<&MultiValues> for Vec<f64>
Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &MultiValues) -> ValueResult<Vec<f64>>
fn try_from(values: &MultiValues) -> ValueResult<Vec<f64>>
Source§impl TryFrom<&MultiValues> for BigInt
Available on crate feature big-integer only.
impl TryFrom<&MultiValues> for BigInt
big-integer only.Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &MultiValues) -> ValueResult<BigInt>
fn try_from(values: &MultiValues) -> ValueResult<BigInt>
Source§impl TryFrom<&MultiValues> for Vec<BigInt>
Available on crate feature big-integer only.
impl TryFrom<&MultiValues> for Vec<BigInt>
big-integer only.Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &MultiValues) -> ValueResult<Vec<BigInt>>
fn try_from(values: &MultiValues) -> ValueResult<Vec<BigInt>>
Source§impl TryFrom<&MultiValues> for BigDecimal
Available on crate feature big-decimal only.
impl TryFrom<&MultiValues> for BigDecimal
big-decimal only.Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &MultiValues) -> ValueResult<BigDecimal>
fn try_from(values: &MultiValues) -> ValueResult<BigDecimal>
Source§impl TryFrom<&MultiValues> for Vec<BigDecimal>
Available on crate feature big-decimal only.
impl TryFrom<&MultiValues> for Vec<BigDecimal>
big-decimal only.Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &MultiValues) -> ValueResult<Vec<BigDecimal>>
fn try_from(values: &MultiValues) -> ValueResult<Vec<BigDecimal>>
Source§impl TryFrom<&MultiValues> for String
impl TryFrom<&MultiValues> for String
Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &MultiValues) -> ValueResult<String>
fn try_from(values: &MultiValues) -> ValueResult<String>
Source§impl TryFrom<&MultiValues> for Vec<String>
impl TryFrom<&MultiValues> for Vec<String>
Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &MultiValues) -> ValueResult<Vec<String>>
fn try_from(values: &MultiValues) -> ValueResult<Vec<String>>
Source§impl TryFrom<&MultiValues> for NaiveDate
Available on crate feature chrono only.
impl TryFrom<&MultiValues> for NaiveDate
chrono only.Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &MultiValues) -> ValueResult<NaiveDate>
fn try_from(values: &MultiValues) -> ValueResult<NaiveDate>
Source§impl TryFrom<&MultiValues> for Vec<NaiveDate>
Available on crate feature chrono only.
impl TryFrom<&MultiValues> for Vec<NaiveDate>
chrono only.Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &MultiValues) -> ValueResult<Vec<NaiveDate>>
fn try_from(values: &MultiValues) -> ValueResult<Vec<NaiveDate>>
Source§impl TryFrom<&MultiValues> for NaiveTime
Available on crate feature chrono only.
impl TryFrom<&MultiValues> for NaiveTime
chrono only.Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &MultiValues) -> ValueResult<NaiveTime>
fn try_from(values: &MultiValues) -> ValueResult<NaiveTime>
Source§impl TryFrom<&MultiValues> for Vec<NaiveTime>
Available on crate feature chrono only.
impl TryFrom<&MultiValues> for Vec<NaiveTime>
chrono only.Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &MultiValues) -> ValueResult<Vec<NaiveTime>>
fn try_from(values: &MultiValues) -> ValueResult<Vec<NaiveTime>>
Source§impl TryFrom<&MultiValues> for NaiveDateTime
Available on crate feature chrono only.
impl TryFrom<&MultiValues> for NaiveDateTime
chrono only.Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &MultiValues) -> ValueResult<NaiveDateTime>
fn try_from(values: &MultiValues) -> ValueResult<NaiveDateTime>
Source§impl TryFrom<&MultiValues> for Vec<NaiveDateTime>
Available on crate feature chrono only.
impl TryFrom<&MultiValues> for Vec<NaiveDateTime>
chrono only.Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &MultiValues) -> ValueResult<Vec<NaiveDateTime>>
fn try_from(values: &MultiValues) -> ValueResult<Vec<NaiveDateTime>>
Source§impl TryFrom<&MultiValues> for DateTime<Utc>
Available on crate feature chrono only.
impl TryFrom<&MultiValues> for DateTime<Utc>
chrono only.Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &MultiValues) -> ValueResult<DateTime<Utc>>
fn try_from(values: &MultiValues) -> ValueResult<DateTime<Utc>>
Source§impl TryFrom<&MultiValues> for Vec<DateTime<Utc>>
Available on crate feature chrono only.
impl TryFrom<&MultiValues> for Vec<DateTime<Utc>>
chrono only.Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &MultiValues) -> ValueResult<Vec<DateTime<Utc>>>
fn try_from(values: &MultiValues) -> ValueResult<Vec<DateTime<Utc>>>
Source§impl TryFrom<&MultiValues> for Duration
impl TryFrom<&MultiValues> for Duration
Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &MultiValues) -> ValueResult<Duration>
fn try_from(values: &MultiValues) -> ValueResult<Duration>
Source§impl TryFrom<&MultiValues> for Vec<Duration>
impl TryFrom<&MultiValues> for Vec<Duration>
Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &MultiValues) -> ValueResult<Vec<Duration>>
fn try_from(values: &MultiValues) -> ValueResult<Vec<Duration>>
Source§impl TryFrom<&MultiValues> for Url
Available on crate feature url only.
impl TryFrom<&MultiValues> for Url
url only.Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &MultiValues) -> ValueResult<Url>
fn try_from(values: &MultiValues) -> ValueResult<Url>
Source§impl TryFrom<&MultiValues> for Vec<Url>
Available on crate feature url only.
impl TryFrom<&MultiValues> for Vec<Url>
url only.Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &MultiValues) -> ValueResult<Vec<Url>>
fn try_from(values: &MultiValues) -> ValueResult<Vec<Url>>
Source§impl TryFrom<&MultiValues> for HashMap<String, String>
impl TryFrom<&MultiValues> for HashMap<String, String>
Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &MultiValues) -> ValueResult<HashMap<String, String>>
fn try_from(values: &MultiValues) -> ValueResult<HashMap<String, String>>
Source§impl TryFrom<&MultiValues> for Vec<HashMap<String, String>>
impl TryFrom<&MultiValues> for Vec<HashMap<String, String>>
Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &MultiValues) -> ValueResult<Vec<HashMap<String, String>>>
fn try_from(values: &MultiValues) -> ValueResult<Vec<HashMap<String, String>>>
Source§impl TryFrom<&MultiValues> for Value
Available on crate feature json only.
impl TryFrom<&MultiValues> for Value
json only.Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &MultiValues) -> ValueResult<Value>
fn try_from(values: &MultiValues) -> ValueResult<Value>
Source§impl TryFrom<&MultiValues> for Vec<Value>
Available on crate feature json only.
impl TryFrom<&MultiValues> for Vec<Value>
json only.Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: &MultiValues) -> ValueResult<Vec<Value>>
fn try_from(values: &MultiValues) -> ValueResult<Vec<Value>>
Source§impl TryFrom<MultiValues> for Vec<bool>
impl TryFrom<MultiValues> for Vec<bool>
Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: MultiValues) -> ValueResult<Self>
fn try_from(values: MultiValues) -> ValueResult<Self>
Source§impl TryFrom<MultiValues> for Vec<char>
impl TryFrom<MultiValues> for Vec<char>
Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: MultiValues) -> ValueResult<Self>
fn try_from(values: MultiValues) -> ValueResult<Self>
Source§impl TryFrom<MultiValues> for Vec<i8>
impl TryFrom<MultiValues> for Vec<i8>
Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: MultiValues) -> ValueResult<Self>
fn try_from(values: MultiValues) -> ValueResult<Self>
Source§impl TryFrom<MultiValues> for Vec<i16>
impl TryFrom<MultiValues> for Vec<i16>
Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: MultiValues) -> ValueResult<Self>
fn try_from(values: MultiValues) -> ValueResult<Self>
Source§impl TryFrom<MultiValues> for Vec<i32>
impl TryFrom<MultiValues> for Vec<i32>
Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: MultiValues) -> ValueResult<Self>
fn try_from(values: MultiValues) -> ValueResult<Self>
Source§impl TryFrom<MultiValues> for Vec<i64>
impl TryFrom<MultiValues> for Vec<i64>
Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: MultiValues) -> ValueResult<Self>
fn try_from(values: MultiValues) -> ValueResult<Self>
Source§impl TryFrom<MultiValues> for Vec<i128>
impl TryFrom<MultiValues> for Vec<i128>
Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: MultiValues) -> ValueResult<Self>
fn try_from(values: MultiValues) -> ValueResult<Self>
Source§impl TryFrom<MultiValues> for Vec<u8>
impl TryFrom<MultiValues> for Vec<u8>
Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: MultiValues) -> ValueResult<Self>
fn try_from(values: MultiValues) -> ValueResult<Self>
Source§impl TryFrom<MultiValues> for Vec<u16>
impl TryFrom<MultiValues> for Vec<u16>
Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: MultiValues) -> ValueResult<Self>
fn try_from(values: MultiValues) -> ValueResult<Self>
Source§impl TryFrom<MultiValues> for Vec<u32>
impl TryFrom<MultiValues> for Vec<u32>
Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: MultiValues) -> ValueResult<Self>
fn try_from(values: MultiValues) -> ValueResult<Self>
Source§impl TryFrom<MultiValues> for Vec<u64>
impl TryFrom<MultiValues> for Vec<u64>
Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: MultiValues) -> ValueResult<Self>
fn try_from(values: MultiValues) -> ValueResult<Self>
Source§impl TryFrom<MultiValues> for Vec<u128>
impl TryFrom<MultiValues> for Vec<u128>
Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: MultiValues) -> ValueResult<Self>
fn try_from(values: MultiValues) -> ValueResult<Self>
Source§impl TryFrom<MultiValues> for Vec<f32>
impl TryFrom<MultiValues> for Vec<f32>
Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: MultiValues) -> ValueResult<Self>
fn try_from(values: MultiValues) -> ValueResult<Self>
Source§impl TryFrom<MultiValues> for Vec<f64>
impl TryFrom<MultiValues> for Vec<f64>
Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: MultiValues) -> ValueResult<Self>
fn try_from(values: MultiValues) -> ValueResult<Self>
Source§impl TryFrom<MultiValues> for Vec<BigInt>
Available on crate feature big-integer only.
impl TryFrom<MultiValues> for Vec<BigInt>
big-integer only.Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: MultiValues) -> ValueResult<Self>
fn try_from(values: MultiValues) -> ValueResult<Self>
Source§impl TryFrom<MultiValues> for Vec<BigDecimal>
Available on crate feature big-decimal only.
impl TryFrom<MultiValues> for Vec<BigDecimal>
big-decimal only.Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: MultiValues) -> ValueResult<Self>
fn try_from(values: MultiValues) -> ValueResult<Self>
Source§impl TryFrom<MultiValues> for Vec<String>
impl TryFrom<MultiValues> for Vec<String>
Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: MultiValues) -> ValueResult<Self>
fn try_from(values: MultiValues) -> ValueResult<Self>
Source§impl TryFrom<MultiValues> for Vec<NaiveDate>
Available on crate feature chrono only.
impl TryFrom<MultiValues> for Vec<NaiveDate>
chrono only.Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: MultiValues) -> ValueResult<Self>
fn try_from(values: MultiValues) -> ValueResult<Self>
Source§impl TryFrom<MultiValues> for Vec<NaiveTime>
Available on crate feature chrono only.
impl TryFrom<MultiValues> for Vec<NaiveTime>
chrono only.Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: MultiValues) -> ValueResult<Self>
fn try_from(values: MultiValues) -> ValueResult<Self>
Source§impl TryFrom<MultiValues> for Vec<NaiveDateTime>
Available on crate feature chrono only.
impl TryFrom<MultiValues> for Vec<NaiveDateTime>
chrono only.Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: MultiValues) -> ValueResult<Self>
fn try_from(values: MultiValues) -> ValueResult<Self>
Source§impl TryFrom<MultiValues> for Vec<DateTime<Utc>>
Available on crate feature chrono only.
impl TryFrom<MultiValues> for Vec<DateTime<Utc>>
chrono only.Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: MultiValues) -> ValueResult<Self>
fn try_from(values: MultiValues) -> ValueResult<Self>
Source§impl TryFrom<MultiValues> for Vec<Duration>
impl TryFrom<MultiValues> for Vec<Duration>
Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: MultiValues) -> ValueResult<Self>
fn try_from(values: MultiValues) -> ValueResult<Self>
Source§impl TryFrom<MultiValues> for Vec<Url>
Available on crate feature url only.
impl TryFrom<MultiValues> for Vec<Url>
url only.Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: MultiValues) -> ValueResult<Self>
fn try_from(values: MultiValues) -> ValueResult<Self>
Source§impl TryFrom<MultiValues> for Vec<HashMap<String, String>>
impl TryFrom<MultiValues> for Vec<HashMap<String, String>>
Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: MultiValues) -> ValueResult<Self>
fn try_from(values: MultiValues) -> ValueResult<Self>
Source§impl TryFrom<MultiValues> for Vec<Value>
Available on crate feature json only.
impl TryFrom<MultiValues> for Vec<Value>
json only.Source§type Error = ValueError
type Error = ValueError
Source§fn try_from(values: MultiValues) -> ValueResult<Self>
fn try_from(values: MultiValues) -> ValueResult<Self>
Source§impl TryFrom<MultiValues> for ValueWirePayloadV1
impl TryFrom<MultiValues> for ValueWirePayloadV1
Source§fn try_from(value: MultiValues) -> Result<Self, Self::Error>
fn try_from(value: MultiValues) -> Result<Self, Self::Error>
Validates a collection for use in a V1 payload.
Source§type Error = ValueWireEncodeError
type Error = ValueWireEncodeError
Source§impl TryFrom<MultiValues> for ValueWireV1
impl TryFrom<MultiValues> for ValueWireV1
Source§fn try_from(values: MultiValues) -> Result<Self, Self::Error>
fn try_from(values: MultiValues) -> Result<Self, Self::Error>
Wraps a runtime collection in a V1 DTO.