pub struct MultiValues { /* private fields */ }Expand description
Multiple typed runtime values with private storage representation.
§Equality and hashing
Equality includes the collection variant and preserves element count and
order. An unset collection’s declared element type also participates in its
identity. Floating-point elements use the same-width NaN and signed-zero
normalization as Value. String maps and JSON objects compare and hash
independently of entry order, while JSON arrays preserve element order.
BigDecimal elements use numeric equality with a consistent normalized hash.
Use Value::numeric_cmp to compare numeric values across runtime types;
Eq does not provide cross-type numeric comparison. Hash output is intended
for in-process collections and is not a persistent fingerprint.
§JSON nesting and lifecycle
With the json feature, JSON equality and hashing use iterative traversal.
This does not provide the same guarantee for the entire value lifecycle:
cloning, ordinary Debug formatting, and dropping JSON payloads still
follow recursive paths in the underlying serde_json::Value.
Very deeply nested trees may exhaust the thread stack during those
operations. This applies to JSON elements, not to the outer collection
length.
Keep untrusted JSON nesting bounded, and consider these lifecycle operations before raising decoder depth limits. Directly constructed in-memory JSON does not pass through those decoder limits. Borrowed reads avoid unnecessary clones but do not remove recursive destruction of the source value. There is no universal safe depth across platforms and thread configurations.
§Examples
use qubit_value::MultiValues;
let values = MultiValues::from(vec![1_i32, 2, 3]);
assert_eq!(values.get_int32s().unwrap(), &[1, 2, 3]);Equality preserves element order and normalizes NaNs within one float width:
use qubit_value::MultiValues;
assert_ne!(MultiValues::Float64(vec![1.0, 2.0]), MultiValues::Float64(vec![2.0, 1.0]));
assert_eq!(
MultiValues::Float64(vec![f64::NAN]),
MultiValues::Float64(vec![f64::NAN]),
);Implementations§
Source§impl MultiValues
impl MultiValues
Sourcepub fn BigInteger(values: Vec<BigInt>) -> Self
Available on crate feature big-integer only.
pub fn BigInteger(values: Vec<BigInt>) -> Self
big-integer only.Sourcepub fn BigDecimal(values: Vec<BigDecimal>) -> Self
Available on crate feature big-decimal only.
pub fn BigDecimal(values: Vec<BigDecimal>) -> Self
big-decimal only.Sourcepub fn DateTime(values: Vec<NaiveDateTime>) -> Self
Available on crate feature chrono only.
pub fn DateTime(values: Vec<NaiveDateTime>) -> Self
chrono only.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.
The returned reference is tied to this collection’s lifetime. The requested type must match the stored element type.
§Type Parameters
T- Stored element type to borrow.
§Returns
A reference to the first item.
§Errors
Returns ValueError::Missing when no first item is available, or a
type conversion error when the stored element type does not match T.
§Examples
use qubit_value::{MultiValues, ValueError};
let values = MultiValues::new(vec![String::from("a"), String::from("b")]);
let first: &String = values.get_first_ref().unwrap();
assert_eq!(first, "a");
let empty = MultiValues::new(Vec::<String>::new());
assert!(matches!(empty.get_first_ref::<String>(), Err(ValueError::Missing(_))));A first-item borrow does not accept a complete slice target:
use qubit_value::MultiValues;
let values = MultiValues::Int32(vec![1, 2]);
let _: &[i32] = values.get_first_ref::<[i32]>().unwrap();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.
The returned slice is tied to this collection’s lifetime. The requested element type must match the stored type.
§Type Parameters
T- Stored element type of the borrowed slice.
§Returns
A slice of all stored items, including an empty slice for an empty collection.
§Errors
Returns ValueError::TypeMismatch when the stored element type does
not match T. Returns ValueError::Missing when the collection is
unset with the requested stored type, with reason
crate::ValueMissingReason::UnsetCollection. A concrete empty
collection succeeds with an empty slice.
§Examples
use qubit_value::MultiValues;
let values = MultiValues::new(vec![String::from("a"), String::from("b")]);
let all: &[String] = values.get_slice().unwrap();
assert_eq!(all.len(), 2);
let empty = MultiValues::new(Vec::<String>::new());
assert!(empty.get_slice::<String>().unwrap().is_empty());
let unset = MultiValues::Unset(qubit_datatype::DataType::String);
let error = unset.get_slice::<String>().unwrap_err();
assert!(matches!(error, qubit_value::ValueError::Missing(_)));
assert_eq!(
error.missing().unwrap().reason(),
qubit_value::ValueMissingReason::UnsetCollection,
);
let error = unset.get_slice::<i32>().unwrap_err();
assert!(matches!(error, qubit_value::ValueError::TypeMismatch { .. }));Sourcepub fn hash_with_json_budget<H, R, Q>(
&self,
state: &mut H,
budget: &mut JsonValueBudget<R, Q>,
) -> Result<(), MeasuredBudgetError<R, Q>>
Available on crate feature json only.
pub fn hash_with_json_budget<H, R, Q>( &self, state: &mut H, budget: &mut JsonValueBudget<R, Q>, ) -> Result<(), MeasuredBudgetError<R, Q>>
json only.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<JsonValue>
Available on crate features converter and json only.
pub fn to_json_value(&self) -> ValueResult<JsonValue>
converter and json only.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.
For natural JSON projection, max_text_bytes bounds each string value
and each formatted number or rich-value text by its UTF-8 byte length,
including strings inside materialized JSON. Object keys are excluded
from this per-item bound but still consume applicable key and
cumulative input, output, and payload budgets. This is neither a
cumulative text limit nor a limit on escaped JSON encoding size.
§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<JsonValue>
Available on crate features converter and json only.
pub fn to_json_value_with( &self, policy: &ConversionPolicy, limits: &ConversionLimits, ) -> ValueResult<JsonValue>
converter and json only.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 ValueError::JsonProjectionLimit when a projection resource
limit is exceeded; its collection index is absent for container-wide
limits and identifies an item for item-specific limits. Returns an
indexed ValueError::ListConversion when an item cannot be
represented under the requested policy, or another structured
conversion error for unsupported values.
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 type-specific named constructors 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
T: StrictValueRead,
pub fn get_first<T>(&self) -> ValueResult<T>where
T: StrictValueRead,
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.
§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");A first-item read does not accept a complete collection target:
use qubit_value::MultiValues;
let values = MultiValues::Int32(vec![1, 2]);
let _: Vec<i32> = values.get_first::<Vec<i32>>().unwrap();When the converter feature is enabled, use Self::to_first for compatible cross-type conversion.
Sourcepub fn get_first_or<T>(
&self,
default: impl IntoValueDefault<T>,
) -> ValueResult<T>where
T: StrictValueRead,
pub fn get_first_or<T>(
&self,
default: impl IntoValueDefault<T>,
) -> ValueResult<T>where
T: StrictValueRead,
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.
use qubit_value::MultiValues;
let values = MultiValues::Int32(vec![1, 2]);
let _: Vec<i32> = values.get_first_or::<Vec<i32>>(Vec::new()).unwrap();Sourcepub fn get_first_or_else<T, F>(&self, default: F) -> ValueResult<T>where
T: StrictValueRead,
F: FnOnce() -> T,
pub fn get_first_or_else<T, F>(&self, default: F) -> ValueResult<T>where
T: StrictValueRead,
F: FnOnce() -> 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.
use qubit_value::MultiValues;
let values = MultiValues::Int32(vec![1, 2]);
let _: Vec<i32> = values.get_first_or_else::<Vec<i32>, _>(Vec::new).unwrap();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 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 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 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 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.
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);Source§impl MultiValues
impl MultiValues
Sourcepub fn to_first<T>(&self) -> ValueResult<T>where
T: DataConversionTarget,
Available on crate feature converter only.
pub fn to_first<T>(&self) -> ValueResult<T>where
T: DataConversionTarget,
converter only.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,
Available on crate feature converter only.
pub fn to_first_or<T>(
&self,
default: impl IntoValueDefault<T>,
) -> ValueResult<T>where
T: DataConversionTarget,
converter only.Converts the first stored value to T, or returns default when the
collection is unset.
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. Errors from concrete collection items are returned.
§Returns
The converted first value, or default for an unset collection.
§Errors
Returns an empty-collection error for a concrete empty vector, a
policy-missing first-item error, or another 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,
Available on crate feature converter only.
pub fn to_first_or_else<T, F>(&self, default: F) -> ValueResult<T>where
T: DataConversionTarget,
F: FnOnce() -> T,
converter only.Converts the first value or calls default when the collection is
unset.
§Type Parameters
T- Target conversion type.F- Deferred fallback producingT.
§Parameters
default- Callback invoked only for unset storage.
§Returns
The converted first item or the callback result for an unset collection.
§Errors
Returns an empty-collection error or a conversion error for a concrete
value that cannot be converted to T. A policy-missing item, including
item zero, remains an error and does not invoke the callback.
Sourcepub fn to_first_with<T>(
&self,
policy: &ConversionPolicy,
limits: &ConversionLimits,
) -> ValueResult<T>where
T: DataConversionTarget,
Available on crate feature converter only.
pub fn to_first_with<T>(
&self,
policy: &ConversionPolicy,
limits: &ConversionLimits,
) -> ValueResult<T>where
T: DataConversionTarget,
converter only.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,
Available on crate feature converter only.
pub fn to_first_in<T>(
&self,
session: &mut ConversionSession<'_>,
) -> ValueResult<T>where
T: DataConversionTarget,
converter only.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,
Available on crate feature converter only.
pub fn to_first_or_with<T>(
&self,
default: impl IntoValueDefault<T>,
policy: &ConversionPolicy,
limits: &ConversionLimits,
) -> ValueResult<T>where
T: DataConversionTarget,
converter only.Converts the first stored value to T using conversion policy and
limits, or returns default when the collection is unset.
§Type Parameters
T- Target conversion type.
§Parameters
default- Value used only when storage is unset.policy- Conversion policy forwarded toqubit_datatype.limits- Conversion limits forwarded toqubit_datatype.
§Returns
The converted first item, or default for an unset collection.
§Errors
Returns an empty-collection error, a policy-missing error at item zero, or an ordinary conversion error for concrete values that cannot be converted under the provided policy and limits. These errors do not invoke the fallback.
§Examples
use qubit_datatype::{ConversionLimits, ConversionPolicy, DataType};
use qubit_value::MultiValues;
let policy = ConversionPolicy::env_friendly();
let limits = ConversionLimits::default();
let unset = MultiValues::new_unset(DataType::String);
assert_eq!(unset.to_first_or_with::<u16>(8080, &policy, &limits)?, 8080);
let concrete = MultiValues::new([""]);
assert!(concrete.to_first_or_with::<u16>(8080, &policy, &limits).is_err());Sourcepub fn to_first_or_else_with<T, F>(
&self,
default: F,
policy: &ConversionPolicy,
limits: &ConversionLimits,
) -> ValueResult<T>where
T: DataConversionTarget,
F: FnOnce() -> T,
Available on crate feature converter only.
pub fn to_first_or_else_with<T, F>(
&self,
default: F,
policy: &ConversionPolicy,
limits: &ConversionLimits,
) -> ValueResult<T>where
T: DataConversionTarget,
F: FnOnce() -> T,
converter only.Converts the first value with the provided policy and limits, or calls
default when the collection is unset.
§Type Parameters
T- Target conversion type.F- Deferred fallback producingT.
§Parameters
default- Callback invoked only for unset storage.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 for an unset collection.
§Errors
Returns an empty-collection error or a conversion error for concrete values. A policy-missing collection item, including item zero, remains an error and does not invoke the callback.
Sourcepub fn to_list<T>(&self) -> ValueResult<Vec<T>>where
T: DataConversionTarget,
Available on crate feature converter only.
pub fn to_list<T>(&self) -> ValueResult<Vec<T>>where
T: DataConversionTarget,
converter only.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,
Available on crate feature converter only.
pub fn to_list_or<T>(
&self,
default: impl IntoValueDefault<Vec<T>>,
) -> ValueResult<Vec<T>>where
T: DataConversionTarget,
converter only.Converts all stored values to T, or returns default when the
collection is unset.
§Type Parameters
T- Target element type.
§Parameters
default- List used only when storage is unset.
§Returns
All converted items, or default for an unset collection. A concrete
empty collection produces an empty vector; a policy-missing item or an
ordinary conversion error never uses the default.
§Errors
Returns the first indexed 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>>
Available on crate feature converter only.
pub fn to_list_or_else<T, F>(&self, default: F) -> ValueResult<Vec<T>>
converter only.Converts all values or calls default when the collection is unset.
§Type Parameters
T- Target element conversion type.F- Deferred fallback producing the complete list.
§Parameters
default- Callback invoked only for unset storage.
§Returns
The converted list or the callback result for an unset collection.
§Errors
Returns the first indexed item-conversion error for concrete storage without invoking the callback.
Sourcepub fn to_list_with<T>(
&self,
policy: &ConversionPolicy,
limits: &ConversionLimits,
) -> ValueResult<Vec<T>>where
T: DataConversionTarget,
Available on crate feature converter only.
pub fn to_list_with<T>(
&self,
policy: &ConversionPolicy,
limits: &ConversionLimits,
) -> ValueResult<Vec<T>>where
T: DataConversionTarget,
converter only.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 or budget error encountered while
converting an element. A policy-missing item returns
ValueError::Missing; its source index is retained by
crate::ValueMissing::source_index. Other element conversion failures
can return ValueError::ListConversion.
Sourcepub fn to_list_in<T>(
&self,
session: &mut ConversionSession<'_>,
) -> ValueResult<Vec<T>>where
T: DataConversionTarget,
Available on crate feature converter only.
pub fn to_list_in<T>(
&self,
session: &mut ConversionSession<'_>,
) -> ValueResult<Vec<T>>where
T: DataConversionTarget,
converter only.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,
Available on crate feature converter only.
pub fn to_list_or_with<T>(
&self,
default: impl IntoValueDefault<Vec<T>>,
policy: &ConversionPolicy,
limits: &ConversionLimits,
) -> ValueResult<Vec<T>>where
T: DataConversionTarget,
converter only.Converts all stored values to T using conversion policy and limits,
or returns default when the collection is unset.
§Type Parameters
T- Target element type.
§Parameters
default- List used only when storage is unset.policy- Conversion policy forwarded toqubit_datatype.limits- Conversion limits forwarded toqubit_datatype.
§Returns
All converted items, or default for an unset collection. A concrete
empty collection produces an empty vector; a missing collection item
or ordinary conversion error never uses the default.
§Errors
Returns the first indexed 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>>
Available on crate feature converter only.
pub fn to_list_or_else_with<T, F>( &self, default: F, policy: &ConversionPolicy, limits: &ConversionLimits, ) -> ValueResult<Vec<T>>
converter only.Converts all values with the provided policy and limits, or calls
default when the collection is unset.
§Type Parameters
T- Target element conversion type.F- Deferred fallback producing the complete list.
§Parameters
default- Callback invoked only for unset storage.policy- Conversion policy forwarded to the shared converter.limits- Conversion limits forwarded to the shared converter.
§Returns
The converted list or the callback result for an unset collection.
§Errors
Returns the first indexed policy-missing item or ordinary conversion error for concrete storage 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>
Available on crate feature chrono only.
pub fn get_first_date(&self) -> ValueResult<NaiveDate>
chrono only.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>
Available on crate feature chrono only.
pub fn get_first_time(&self) -> ValueResult<NaiveTime>
chrono only.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>
Available on crate feature chrono only.
pub fn get_first_datetime(&self) -> ValueResult<NaiveDateTime>
chrono only.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>>
Available on crate feature chrono only.
pub fn get_first_instant(&self) -> ValueResult<DateTime<Utc>>
chrono only.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>
Available on crate feature big-integer only.
pub fn get_first_biginteger(&self) -> ValueResult<BigInt>
big-integer only.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>
Available on crate feature big-decimal only.
pub fn get_first_bigdecimal(&self) -> ValueResult<BigDecimal>
big-decimal only.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>
Available on crate feature url only.
pub fn get_first_url(&self) -> ValueResult<Url>
url only.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<JsonValue>
Available on crate feature json only.
pub fn get_first_json(&self) -> ValueResult<JsonValue>
json only.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]>
Available on crate feature chrono only.
pub fn get_dates(&self) -> ValueResult<&[NaiveDate]>
chrono only.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]>
Available on crate feature chrono only.
pub fn get_times(&self) -> ValueResult<&[NaiveTime]>
chrono only.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]>
Available on crate feature chrono only.
pub fn get_datetimes(&self) -> ValueResult<&[NaiveDateTime]>
chrono only.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>]>
Available on crate feature chrono only.
pub fn get_instants(&self) -> ValueResult<&[DateTime<Utc>]>
chrono only.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]>
Available on crate feature big-integer only.
pub fn get_bigintegers(&self) -> ValueResult<&[BigInt]>
big-integer only.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]>
Available on crate feature big-decimal only.
pub fn get_bigdecimals(&self) -> ValueResult<&[BigDecimal]>
big-decimal only.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]>
Available on crate feature url only.
pub fn get_urls(&self) -> ValueResult<&[Url]>
url only.Get reference to all Url values
§Returns
A borrowed slice containing all stored URLs. The slice borrows from this collection; no elements are cloned.
§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 borrowed slice containing all stored string maps. The slice borrows from this collection; no maps or entries are cloned.
§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<&[JsonValue]>
Available on crate feature json only.
pub fn get_jsons(&self) -> ValueResult<&[JsonValue]>
json only.Get reference to all Json values
§Returns
A borrowed slice containing all stored JSON values. The slice borrows from this collection; no JSON trees are cloned.
§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§impl Debug for MultiValues
impl Debug for MultiValues
impl Eq for MultiValues
Source§impl<'a, 'b> From<&'a Vec<&'b str>> for MultiValues
impl<'a, 'b> From<&'a Vec<&'b str>> for MultiValues
Source§impl<'a, 'b, const N: usize> From<&'a [&'b str; N]> for MultiValues
impl<'a, 'b, const N: usize> From<&'a [&'b str; N]> 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<BigInt>> for MultiValues
Available on crate feature big-integer only.
impl From<&Vec<BigInt>> for MultiValues
big-integer only.Source§impl From<&Vec<DateTime<Utc>>> for MultiValues
Available on crate feature chrono only.
impl From<&Vec<DateTime<Utc>>> for MultiValues
chrono only.Source§impl From<&Vec<HashMap<String, String>>> for MultiValues
impl From<&Vec<HashMap<String, String>>> for MultiValues
Source§impl From<&Vec<NaiveDate>> for MultiValues
Available on crate feature chrono only.
impl From<&Vec<NaiveDate>> for MultiValues
chrono only.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 From<&Vec<NaiveTime>> for MultiValues
Available on crate feature chrono only.
impl From<&Vec<NaiveTime>> for MultiValues
chrono only.Source§impl From<&Vec<Url>> for MultiValues
Available on crate feature url only.
impl From<&Vec<Url>> for MultiValues
url only.Source§impl From<&Vec<Value>> for MultiValues
Available on crate feature json only.
impl From<&Vec<Value>> for MultiValues
json only.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<&[DateTime<Utc>]> for MultiValues
Available on crate feature chrono only.
impl From<&[DateTime<Utc>]> for MultiValues
chrono only.Source§impl<const N: usize> From<&[Duration; N]> for MultiValues
impl<const N: usize> From<&[Duration; N]> for MultiValues
Source§impl<const N: usize> From<&[HashMap<String, String>; N]> for MultiValues
impl<const N: usize> From<&[HashMap<String, String>; N]> for MultiValues
Source§impl From<&[HashMap<String, String>]> for MultiValues
impl From<&[HashMap<String, String>]> 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<const N: usize> From<&[String; N]> for MultiValues
impl<const N: usize> From<&[String; N]> for MultiValues
Source§impl<const N: usize> From<&[Url; N]> for MultiValues
Available on crate feature url only.
impl<const N: usize> From<&[Url; N]> for MultiValues
url only.Source§impl From<&[Url]> for MultiValues
Available on crate feature url only.
impl From<&[Url]> for MultiValues
url only.Source§impl<const N: usize> From<&[Value; N]> for MultiValues
Available on crate feature json only.
impl<const N: usize> From<&[Value; N]> for MultiValues
json only.Source§impl From<&[Value]> for MultiValues
Available on crate feature json only.
impl From<&[Value]> for MultiValues
json only.Source§impl<const N: usize> From<&[bool; N]> for MultiValues
impl<const N: usize> From<&[bool; N]> for MultiValues
Source§impl<const N: usize> From<&[char; N]> for MultiValues
impl<const N: usize> From<&[char; N]> for MultiValues
Source§impl<const N: usize> From<&[f32; N]> for MultiValues
impl<const N: usize> From<&[f32; N]> for MultiValues
Source§impl<const N: usize> From<&[f64; N]> for MultiValues
impl<const N: usize> From<&[f64; N]> for MultiValues
Source§impl<const N: usize> From<&[i16; N]> for MultiValues
impl<const N: usize> From<&[i16; N]> for MultiValues
Source§impl<const N: usize> From<&[i32; N]> for MultiValues
impl<const N: usize> From<&[i32; N]> for MultiValues
Source§impl<const N: usize> From<&[i64; N]> for MultiValues
impl<const N: usize> From<&[i64; N]> for MultiValues
Source§impl<const N: usize> From<&[i128; N]> for MultiValues
impl<const N: usize> From<&[i128; N]> for MultiValues
Source§impl<const N: usize> From<&[u16; N]> for MultiValues
impl<const N: usize> From<&[u16; N]> for MultiValues
Source§impl<const N: usize> From<&[u32; N]> for MultiValues
impl<const N: usize> From<&[u32; N]> for MultiValues
Source§impl<const N: usize> From<&[u64; N]> for MultiValues
impl<const N: usize> From<&[u64; N]> for MultiValues
Source§impl<const N: usize> From<&[u128; N]> for MultiValues
impl<const N: usize> From<&[u128; N]> 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§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§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§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§fn from(value: Value) -> Self
fn from(value: Value) -> Self
Moves a scalar payload into a one-item collection, preserving its type.
An unset scalar becomes an unset collection with the same declared type.
§Parameters
value- Scalar whose owned storage is transferred to the collection.
§Returns
A one-item collection, or a typed unset collection for an unset scalar.
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<BigInt>> for MultiValues
Available on crate feature big-integer only.
impl From<Vec<BigInt>> for MultiValues
big-integer only.Source§impl From<Vec<DateTime<Utc>>> for MultiValues
Available on crate feature chrono only.
impl From<Vec<DateTime<Utc>>> for MultiValues
chrono only.Source§impl From<Vec<HashMap<String, String>>> for MultiValues
impl From<Vec<HashMap<String, String>>> for MultiValues
Source§impl From<Vec<NaiveDate>> for MultiValues
Available on crate feature chrono only.
impl From<Vec<NaiveDate>> for MultiValues
chrono only.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 From<Vec<NaiveTime>> for MultiValues
Available on crate feature chrono only.
impl From<Vec<NaiveTime>> for MultiValues
chrono only.Source§impl From<Vec<Url>> for MultiValues
Available on crate feature url only.
impl From<Vec<Url>> for MultiValues
url only.Source§impl From<Vec<Value>> for MultiValues
Available on crate feature json only.
impl From<Vec<Value>> for MultiValues
json only.Source§impl<'a, const N: usize> From<[&'a str; N]> for MultiValues
impl<'a, const N: usize> From<[&'a str; N]> for MultiValues
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<[Duration; N]> for MultiValues
impl<const N: usize> From<[Duration; N]> for MultiValues
Source§impl<const N: usize> From<[HashMap<String, String>; N]> for MultiValues
impl<const N: usize> From<[HashMap<String, String>; N]> 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<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<const N: usize> From<[String; N]> for MultiValues
impl<const N: usize> From<[String; N]> for MultiValues
Source§impl<const N: usize> From<[Url; N]> for MultiValues
Available on crate feature url only.
impl<const N: usize> From<[Url; N]> for MultiValues
url only.Source§impl<const N: usize> From<[Value; N]> for MultiValues
Available on crate feature json only.
impl<const N: usize> From<[Value; N]> for MultiValues
json only.Source§impl<const N: usize> From<[bool; N]> for MultiValues
impl<const N: usize> From<[bool; N]> for MultiValues
Source§impl<const N: usize> From<[char; N]> for MultiValues
impl<const N: usize> From<[char; N]> for MultiValues
Source§impl<const N: usize> From<[i128; N]> for MultiValues
impl<const N: usize> From<[i128; N]> for MultiValues
Source§impl<const N: usize> From<[u128; N]> for MultiValues
impl<const N: usize> From<[u128; N]> for MultiValues
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 Redact for MultiValues
Available on crate feature redact only.
impl Redact for MultiValues
redact only.Source§fn write_redacted(&self, writer: &mut RedactionWriter<'_>)
fn write_redacted(&self, writer: &mut RedactionWriter<'_>)
Writes a typed collection through the shared structured writer.
§Parameters
writer: Borrowed writer for the active redaction session; receives the classified representation without modifying the source value.
Source§impl<'a> TryFrom<&'a MultiValues> for &'a bool
impl<'a> TryFrom<&'a MultiValues> for &'a bool
Source§type Error = ValueError
type Error = ValueError
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Borrows the first element without allocating or converting its runtime type.
§Parameters
values: The collection whose storage is borrowed for the returned lifetime.
§Returns
A reference to the first element, valid for the input borrow.
§Errors
Returns a missing-value error for an empty or matching unset collection, or a type-mismatch error when the runtime element type differs.
Source§impl<'a> TryFrom<&'a MultiValues> for &'a [bool]
impl<'a> TryFrom<&'a MultiValues> for &'a [bool]
Source§type Error = ValueError
type Error = ValueError
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Borrows the complete element slice without allocating.
§Parameters
values: The collection whose storage is borrowed for the returned lifetime.
§Returns
The stored slice, possibly empty, valid for the input borrow.
§Errors
Returns a missing-value error for a matching unset collection, or a type-mismatch error when the runtime element type differs.
Source§impl<'a> TryFrom<&'a MultiValues> for &'a char
impl<'a> TryFrom<&'a MultiValues> for &'a char
Source§type Error = ValueError
type Error = ValueError
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Borrows the first element without allocating or converting its runtime type.
§Parameters
values: The collection whose storage is borrowed for the returned lifetime.
§Returns
A reference to the first element, valid for the input borrow.
§Errors
Returns a missing-value error for an empty or matching unset collection, or a type-mismatch error when the runtime element type differs.
Source§impl<'a> TryFrom<&'a MultiValues> for &'a [char]
impl<'a> TryFrom<&'a MultiValues> for &'a [char]
Source§type Error = ValueError
type Error = ValueError
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Borrows the complete element slice without allocating.
§Parameters
values: The collection whose storage is borrowed for the returned lifetime.
§Returns
The stored slice, possibly empty, valid for the input borrow.
§Errors
Returns a missing-value error for a matching unset collection, or a type-mismatch error when the runtime element type differs.
Source§impl<'a> TryFrom<&'a MultiValues> for &'a i8
impl<'a> TryFrom<&'a MultiValues> for &'a i8
Source§type Error = ValueError
type Error = ValueError
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Borrows the first element without allocating or converting its runtime type.
§Parameters
values: The collection whose storage is borrowed for the returned lifetime.
§Returns
A reference to the first element, valid for the input borrow.
§Errors
Returns a missing-value error for an empty or matching unset collection, or a type-mismatch error when the runtime element type differs.
Source§impl<'a> TryFrom<&'a MultiValues> for &'a [i8]
impl<'a> TryFrom<&'a MultiValues> for &'a [i8]
Source§type Error = ValueError
type Error = ValueError
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Borrows the complete element slice without allocating.
§Parameters
values: The collection whose storage is borrowed for the returned lifetime.
§Returns
The stored slice, possibly empty, valid for the input borrow.
§Errors
Returns a missing-value error for a matching unset collection, or a type-mismatch error when the runtime element type differs.
Source§impl<'a> TryFrom<&'a MultiValues> for &'a i16
impl<'a> TryFrom<&'a MultiValues> for &'a i16
Source§type Error = ValueError
type Error = ValueError
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Borrows the first element without allocating or converting its runtime type.
§Parameters
values: The collection whose storage is borrowed for the returned lifetime.
§Returns
A reference to the first element, valid for the input borrow.
§Errors
Returns a missing-value error for an empty or matching unset collection, or a type-mismatch error when the runtime element type differs.
Source§impl<'a> TryFrom<&'a MultiValues> for &'a [i16]
impl<'a> TryFrom<&'a MultiValues> for &'a [i16]
Source§type Error = ValueError
type Error = ValueError
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Borrows the complete element slice without allocating.
§Parameters
values: The collection whose storage is borrowed for the returned lifetime.
§Returns
The stored slice, possibly empty, valid for the input borrow.
§Errors
Returns a missing-value error for a matching unset collection, or a type-mismatch error when the runtime element type differs.
Source§impl<'a> TryFrom<&'a MultiValues> for &'a i32
impl<'a> TryFrom<&'a MultiValues> for &'a i32
Source§type Error = ValueError
type Error = ValueError
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Borrows the first element without allocating or converting its runtime type.
§Parameters
values: The collection whose storage is borrowed for the returned lifetime.
§Returns
A reference to the first element, valid for the input borrow.
§Errors
Returns a missing-value error for an empty or matching unset collection, or a type-mismatch error when the runtime element type differs.
Source§impl<'a> TryFrom<&'a MultiValues> for &'a [i32]
impl<'a> TryFrom<&'a MultiValues> for &'a [i32]
Source§type Error = ValueError
type Error = ValueError
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Borrows the complete element slice without allocating.
§Parameters
values: The collection whose storage is borrowed for the returned lifetime.
§Returns
The stored slice, possibly empty, valid for the input borrow.
§Errors
Returns a missing-value error for a matching unset collection, or a type-mismatch error when the runtime element type differs.
Source§impl<'a> TryFrom<&'a MultiValues> for &'a i64
impl<'a> TryFrom<&'a MultiValues> for &'a i64
Source§type Error = ValueError
type Error = ValueError
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Borrows the first element without allocating or converting its runtime type.
§Parameters
values: The collection whose storage is borrowed for the returned lifetime.
§Returns
A reference to the first element, valid for the input borrow.
§Errors
Returns a missing-value error for an empty or matching unset collection, or a type-mismatch error when the runtime element type differs.
Source§impl<'a> TryFrom<&'a MultiValues> for &'a [i64]
impl<'a> TryFrom<&'a MultiValues> for &'a [i64]
Source§type Error = ValueError
type Error = ValueError
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Borrows the complete element slice without allocating.
§Parameters
values: The collection whose storage is borrowed for the returned lifetime.
§Returns
The stored slice, possibly empty, valid for the input borrow.
§Errors
Returns a missing-value error for a matching unset collection, or a type-mismatch error when the runtime element type differs.
Source§impl<'a> TryFrom<&'a MultiValues> for &'a i128
impl<'a> TryFrom<&'a MultiValues> for &'a i128
Source§type Error = ValueError
type Error = ValueError
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Borrows the first element without allocating or converting its runtime type.
§Parameters
values: The collection whose storage is borrowed for the returned lifetime.
§Returns
A reference to the first element, valid for the input borrow.
§Errors
Returns a missing-value error for an empty or matching unset collection, or a type-mismatch error when the runtime element type differs.
Source§impl<'a> TryFrom<&'a MultiValues> for &'a [i128]
impl<'a> TryFrom<&'a MultiValues> for &'a [i128]
Source§type Error = ValueError
type Error = ValueError
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Borrows the complete element slice without allocating.
§Parameters
values: The collection whose storage is borrowed for the returned lifetime.
§Returns
The stored slice, possibly empty, valid for the input borrow.
§Errors
Returns a missing-value error for a matching unset collection, or a type-mismatch error when the runtime element type differs.
Source§impl<'a> TryFrom<&'a MultiValues> for &'a u8
impl<'a> TryFrom<&'a MultiValues> for &'a u8
Source§type Error = ValueError
type Error = ValueError
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Borrows the first element without allocating or converting its runtime type.
§Parameters
values: The collection whose storage is borrowed for the returned lifetime.
§Returns
A reference to the first element, valid for the input borrow.
§Errors
Returns a missing-value error for an empty or matching unset collection, or a type-mismatch error when the runtime element type differs.
Source§impl<'a> TryFrom<&'a MultiValues> for &'a [u8]
impl<'a> TryFrom<&'a MultiValues> for &'a [u8]
Source§type Error = ValueError
type Error = ValueError
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Borrows the complete element slice without allocating.
§Parameters
values: The collection whose storage is borrowed for the returned lifetime.
§Returns
The stored slice, possibly empty, valid for the input borrow.
§Errors
Returns a missing-value error for a matching unset collection, or a type-mismatch error when the runtime element type differs.
Source§impl<'a> TryFrom<&'a MultiValues> for &'a u16
impl<'a> TryFrom<&'a MultiValues> for &'a u16
Source§type Error = ValueError
type Error = ValueError
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Borrows the first element without allocating or converting its runtime type.
§Parameters
values: The collection whose storage is borrowed for the returned lifetime.
§Returns
A reference to the first element, valid for the input borrow.
§Errors
Returns a missing-value error for an empty or matching unset collection, or a type-mismatch error when the runtime element type differs.
Source§impl<'a> TryFrom<&'a MultiValues> for &'a [u16]
impl<'a> TryFrom<&'a MultiValues> for &'a [u16]
Source§type Error = ValueError
type Error = ValueError
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Borrows the complete element slice without allocating.
§Parameters
values: The collection whose storage is borrowed for the returned lifetime.
§Returns
The stored slice, possibly empty, valid for the input borrow.
§Errors
Returns a missing-value error for a matching unset collection, or a type-mismatch error when the runtime element type differs.
Source§impl<'a> TryFrom<&'a MultiValues> for &'a u32
impl<'a> TryFrom<&'a MultiValues> for &'a u32
Source§type Error = ValueError
type Error = ValueError
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Borrows the first element without allocating or converting its runtime type.
§Parameters
values: The collection whose storage is borrowed for the returned lifetime.
§Returns
A reference to the first element, valid for the input borrow.
§Errors
Returns a missing-value error for an empty or matching unset collection, or a type-mismatch error when the runtime element type differs.
Source§impl<'a> TryFrom<&'a MultiValues> for &'a [u32]
impl<'a> TryFrom<&'a MultiValues> for &'a [u32]
Source§type Error = ValueError
type Error = ValueError
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Borrows the complete element slice without allocating.
§Parameters
values: The collection whose storage is borrowed for the returned lifetime.
§Returns
The stored slice, possibly empty, valid for the input borrow.
§Errors
Returns a missing-value error for a matching unset collection, or a type-mismatch error when the runtime element type differs.
Source§impl<'a> TryFrom<&'a MultiValues> for &'a u64
impl<'a> TryFrom<&'a MultiValues> for &'a u64
Source§type Error = ValueError
type Error = ValueError
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Borrows the first element without allocating or converting its runtime type.
§Parameters
values: The collection whose storage is borrowed for the returned lifetime.
§Returns
A reference to the first element, valid for the input borrow.
§Errors
Returns a missing-value error for an empty or matching unset collection, or a type-mismatch error when the runtime element type differs.
Source§impl<'a> TryFrom<&'a MultiValues> for &'a [u64]
impl<'a> TryFrom<&'a MultiValues> for &'a [u64]
Source§type Error = ValueError
type Error = ValueError
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Borrows the complete element slice without allocating.
§Parameters
values: The collection whose storage is borrowed for the returned lifetime.
§Returns
The stored slice, possibly empty, valid for the input borrow.
§Errors
Returns a missing-value error for a matching unset collection, or a type-mismatch error when the runtime element type differs.
Source§impl<'a> TryFrom<&'a MultiValues> for &'a u128
impl<'a> TryFrom<&'a MultiValues> for &'a u128
Source§type Error = ValueError
type Error = ValueError
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Borrows the first element without allocating or converting its runtime type.
§Parameters
values: The collection whose storage is borrowed for the returned lifetime.
§Returns
A reference to the first element, valid for the input borrow.
§Errors
Returns a missing-value error for an empty or matching unset collection, or a type-mismatch error when the runtime element type differs.
Source§impl<'a> TryFrom<&'a MultiValues> for &'a [u128]
impl<'a> TryFrom<&'a MultiValues> for &'a [u128]
Source§type Error = ValueError
type Error = ValueError
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Borrows the complete element slice without allocating.
§Parameters
values: The collection whose storage is borrowed for the returned lifetime.
§Returns
The stored slice, possibly empty, valid for the input borrow.
§Errors
Returns a missing-value error for a matching unset collection, or a type-mismatch error when the runtime element type differs.
Source§impl<'a> TryFrom<&'a MultiValues> for &'a f32
impl<'a> TryFrom<&'a MultiValues> for &'a f32
Source§type Error = ValueError
type Error = ValueError
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Borrows the first element without allocating or converting its runtime type.
§Parameters
values: The collection whose storage is borrowed for the returned lifetime.
§Returns
A reference to the first element, valid for the input borrow.
§Errors
Returns a missing-value error for an empty or matching unset collection, or a type-mismatch error when the runtime element type differs.
Source§impl<'a> TryFrom<&'a MultiValues> for &'a [f32]
impl<'a> TryFrom<&'a MultiValues> for &'a [f32]
Source§type Error = ValueError
type Error = ValueError
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Borrows the complete element slice without allocating.
§Parameters
values: The collection whose storage is borrowed for the returned lifetime.
§Returns
The stored slice, possibly empty, valid for the input borrow.
§Errors
Returns a missing-value error for a matching unset collection, or a type-mismatch error when the runtime element type differs.
Source§impl<'a> TryFrom<&'a MultiValues> for &'a f64
impl<'a> TryFrom<&'a MultiValues> for &'a f64
Source§type Error = ValueError
type Error = ValueError
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Borrows the first element without allocating or converting its runtime type.
§Parameters
values: The collection whose storage is borrowed for the returned lifetime.
§Returns
A reference to the first element, valid for the input borrow.
§Errors
Returns a missing-value error for an empty or matching unset collection, or a type-mismatch error when the runtime element type differs.
Source§impl<'a> TryFrom<&'a MultiValues> for &'a [f64]
impl<'a> TryFrom<&'a MultiValues> for &'a [f64]
Source§type Error = ValueError
type Error = ValueError
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Borrows the complete element slice without allocating.
§Parameters
values: The collection whose storage is borrowed for the returned lifetime.
§Returns
The stored slice, possibly empty, valid for the input borrow.
§Errors
Returns a missing-value error for a matching unset collection, or a type-mismatch error when the runtime element type differs.
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
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Borrows the first element without allocating or converting its runtime type.
§Parameters
values: The collection whose storage is borrowed for the returned lifetime.
§Returns
A reference to the first element, valid for the input borrow.
§Errors
Returns a missing-value error for an empty or matching unset collection, or a type-mismatch error when the runtime element type differs.
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
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Borrows the complete element slice without allocating.
§Parameters
values: The collection whose storage is borrowed for the returned lifetime.
§Returns
The stored slice, possibly empty, valid for the input borrow.
§Errors
Returns a missing-value error for a matching unset collection, or a type-mismatch error when the runtime element type differs.
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
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Borrows the first element without allocating or converting its runtime type.
§Parameters
values: The collection whose storage is borrowed for the returned lifetime.
§Returns
A reference to the first element, valid for the input borrow.
§Errors
Returns a missing-value error for an empty or matching unset collection, or a type-mismatch error when the runtime element type differs.
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
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Borrows the complete element slice without allocating.
§Parameters
values: The collection whose storage is borrowed for the returned lifetime.
§Returns
The stored slice, possibly empty, valid for the input borrow.
§Errors
Returns a missing-value error for a matching unset collection, or a type-mismatch error when the runtime element type differs.
Source§impl<'a> TryFrom<&'a MultiValues> for &'a String
impl<'a> TryFrom<&'a MultiValues> for &'a String
Source§type Error = ValueError
type Error = ValueError
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Borrows the first element without allocating or converting its runtime type.
§Parameters
values: The collection whose storage is borrowed for the returned lifetime.
§Returns
A reference to the first element, valid for the input borrow.
§Errors
Returns a missing-value error for an empty or matching unset collection, or a type-mismatch error when the runtime element type differs.
Source§impl<'a> TryFrom<&'a MultiValues> for &'a [String]
impl<'a> TryFrom<&'a MultiValues> for &'a [String]
Source§type Error = ValueError
type Error = ValueError
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Borrows the complete element slice without allocating.
§Parameters
values: The collection whose storage is borrowed for the returned lifetime.
§Returns
The stored slice, possibly empty, valid for the input borrow.
§Errors
Returns a missing-value error for a matching unset collection, or a type-mismatch error when the runtime element type differs.
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
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Borrows the first element without allocating or converting its runtime type.
§Parameters
values: The collection whose storage is borrowed for the returned lifetime.
§Returns
A reference to the first element, valid for the input borrow.
§Errors
Returns a missing-value error for an empty or matching unset collection, or a type-mismatch error when the runtime element type differs.
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
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Borrows the complete element slice without allocating.
§Parameters
values: The collection whose storage is borrowed for the returned lifetime.
§Returns
The stored slice, possibly empty, valid for the input borrow.
§Errors
Returns a missing-value error for a matching unset collection, or a type-mismatch error when the runtime element type differs.
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
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Borrows the first element without allocating or converting its runtime type.
§Parameters
values: The collection whose storage is borrowed for the returned lifetime.
§Returns
A reference to the first element, valid for the input borrow.
§Errors
Returns a missing-value error for an empty or matching unset collection, or a type-mismatch error when the runtime element type differs.
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
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Borrows the complete element slice without allocating.
§Parameters
values: The collection whose storage is borrowed for the returned lifetime.
§Returns
The stored slice, possibly empty, valid for the input borrow.
§Errors
Returns a missing-value error for a matching unset collection, or a type-mismatch error when the runtime element type differs.
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
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Borrows the first element without allocating or converting its runtime type.
§Parameters
values: The collection whose storage is borrowed for the returned lifetime.
§Returns
A reference to the first element, valid for the input borrow.
§Errors
Returns a missing-value error for an empty or matching unset collection, or a type-mismatch error when the runtime element type differs.
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
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Borrows the complete element slice without allocating.
§Parameters
values: The collection whose storage is borrowed for the returned lifetime.
§Returns
The stored slice, possibly empty, valid for the input borrow.
§Errors
Returns a missing-value error for a matching unset collection, or a type-mismatch error when the runtime element type differs.
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
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Borrows the first element without allocating or converting its runtime type.
§Parameters
values: The collection whose storage is borrowed for the returned lifetime.
§Returns
A reference to the first element, valid for the input borrow.
§Errors
Returns a missing-value error for an empty or matching unset collection, or a type-mismatch error when the runtime element type differs.
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
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Borrows the complete element slice without allocating.
§Parameters
values: The collection whose storage is borrowed for the returned lifetime.
§Returns
The stored slice, possibly empty, valid for the input borrow.
§Errors
Returns a missing-value error for a matching unset collection, or a type-mismatch error when the runtime element type differs.
Source§impl<'a> TryFrom<&'a MultiValues> for &'a Duration
impl<'a> TryFrom<&'a MultiValues> for &'a Duration
Source§type Error = ValueError
type Error = ValueError
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Borrows the first element without allocating or converting its runtime type.
§Parameters
values: The collection whose storage is borrowed for the returned lifetime.
§Returns
A reference to the first element, valid for the input borrow.
§Errors
Returns a missing-value error for an empty or matching unset collection, or a type-mismatch error when the runtime element type differs.
Source§impl<'a> TryFrom<&'a MultiValues> for &'a [Duration]
impl<'a> TryFrom<&'a MultiValues> for &'a [Duration]
Source§type Error = ValueError
type Error = ValueError
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Borrows the complete element slice without allocating.
§Parameters
values: The collection whose storage is borrowed for the returned lifetime.
§Returns
The stored slice, possibly empty, valid for the input borrow.
§Errors
Returns a missing-value error for a matching unset collection, or a type-mismatch error when the runtime element type differs.
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
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Borrows the first element without allocating or converting its runtime type.
§Parameters
values: The collection whose storage is borrowed for the returned lifetime.
§Returns
A reference to the first element, valid for the input borrow.
§Errors
Returns a missing-value error for an empty or matching unset collection, or a type-mismatch error when the runtime element type differs.
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
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Borrows the complete element slice without allocating.
§Parameters
values: The collection whose storage is borrowed for the returned lifetime.
§Returns
The stored slice, possibly empty, valid for the input borrow.
§Errors
Returns a missing-value error for a matching unset collection, or a type-mismatch error when the runtime element type differs.
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
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Borrows the first element without allocating or converting its runtime type.
§Parameters
values: The collection whose storage is borrowed for the returned lifetime.
§Returns
A reference to the first element, valid for the input borrow.
§Errors
Returns a missing-value error for an empty or matching unset collection, or a type-mismatch error when the runtime element type differs.
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
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Borrows the complete element slice without allocating.
§Parameters
values: The collection whose storage is borrowed for the returned lifetime.
§Returns
The stored slice, possibly empty, valid for the input borrow.
§Errors
Returns a missing-value error for a matching unset collection, or a type-mismatch error when the runtime element type differs.
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
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Borrows the first element without allocating or converting its runtime type.
§Parameters
values: The collection whose storage is borrowed for the returned lifetime.
§Returns
A reference to the first element, valid for the input borrow.
§Errors
Returns a missing-value error for an empty or matching unset collection, or a type-mismatch error when the runtime element type differs.
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
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Borrows the complete element slice without allocating.
§Parameters
values: The collection whose storage is borrowed for the returned lifetime.
§Returns
The stored slice, possibly empty, valid for the input borrow.
§Errors
Returns a missing-value error for a matching unset collection, or a type-mismatch error when the runtime element type differs.
Source§impl<'a> TryFrom<&'a MultiValues> for &'a str
impl<'a> TryFrom<&'a MultiValues> for &'a str
Source§type Error = ValueError
type Error = ValueError
Reports a missing string or an exact runtime type mismatch.
Source§fn try_from(values: &'a MultiValues) -> ValueResult<Self>
fn try_from(values: &'a MultiValues) -> ValueResult<Self>
Borrows the first stored string as a slice without allocating.
§Parameters
values: The collection borrowed for the returned slice’s lifetime.
§Returns
The first string slice, valid for the input borrow.
§Errors
Returns a missing-value error for an empty or matching unset collection, or a type-mismatch error when the runtime element type is not string.
Source§impl<'a> TryFrom<&'a MultiValues> for ValueWirePayloadRefV1<'a>
impl<'a> TryFrom<&'a MultiValues> for ValueWirePayloadRefV1<'a>
Source§type Error = ValueWireEncodeError
type Error = ValueWireEncodeError
V1 representation validation failure; the borrowed input is unchanged.
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.
§Parameters
values- Homogeneous runtime collection to validate and borrow.
§Returns
A validated V1 payload borrowing the original input without cloning.
§Errors
Returns the representation validation errors documented by
Self::from_values.
Source§impl<'a> TryFrom<&'a MultiValues> for ValueWireRefV1<'a>
impl<'a> TryFrom<&'a MultiValues> for ValueWireRefV1<'a>
Source§type Error = ValueWireEncodeError
type Error = ValueWireEncodeError
Validation failure when the borrowed input cannot be represented in V1.
Source§fn try_from(values: &'a MultiValues) -> Result<Self, Self::Error>
fn try_from(values: &'a MultiValues) -> Result<Self, Self::Error>
Validates and borrows the input without cloning its payload.
§Parameters
values- Homogeneous runtime collection to validate and borrow for'a.
§Returns
A borrowed V1 envelope preserving the input shape.
§Errors
Returns the same representational validation errors as
Self::from_values.
Source§impl TryFrom<&MultiValues> for bool
impl TryFrom<&MultiValues> for bool
Source§type Error = ValueError
type Error = ValueError
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: &MultiValues) -> ValueResult<bool>
fn try_from(values: &MultiValues) -> ValueResult<bool>
Copies or clones the first element without converting its runtime type.
§Parameters
values: The collection to read without modifying its storage.
§Returns
An owned copy or clone of the first element.
§Errors
Returns a missing-value error for an empty or matching unset collection, or a type-mismatch error when the runtime element type differs.
Source§impl TryFrom<&MultiValues> for Vec<bool>
impl TryFrom<&MultiValues> for Vec<bool>
Source§type Error = ValueError
type Error = ValueError
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: &MultiValues) -> ValueResult<Vec<bool>>
fn try_from(values: &MultiValues) -> ValueResult<Vec<bool>>
Copies or clones all elements while preserving their order.
§Parameters
values: The collection to read without modifying its storage.
§Returns
An owned vector, including an empty vector for matching empty storage.
§Errors
Returns a missing-value error for a matching unset collection, or a type-mismatch error when the runtime element type differs.
Source§impl TryFrom<&MultiValues> for char
impl TryFrom<&MultiValues> for char
Source§type Error = ValueError
type Error = ValueError
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: &MultiValues) -> ValueResult<char>
fn try_from(values: &MultiValues) -> ValueResult<char>
Copies or clones the first element without converting its runtime type.
§Parameters
values: The collection to read without modifying its storage.
§Returns
An owned copy or clone of the first element.
§Errors
Returns a missing-value error for an empty or matching unset collection, or a type-mismatch error when the runtime element type differs.
Source§impl TryFrom<&MultiValues> for Vec<char>
impl TryFrom<&MultiValues> for Vec<char>
Source§type Error = ValueError
type Error = ValueError
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: &MultiValues) -> ValueResult<Vec<char>>
fn try_from(values: &MultiValues) -> ValueResult<Vec<char>>
Copies or clones all elements while preserving their order.
§Parameters
values: The collection to read without modifying its storage.
§Returns
An owned vector, including an empty vector for matching empty storage.
§Errors
Returns a missing-value error for a matching unset collection, or a type-mismatch error when the runtime element type differs.
Source§impl TryFrom<&MultiValues> for i8
impl TryFrom<&MultiValues> for i8
Source§type Error = ValueError
type Error = ValueError
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: &MultiValues) -> ValueResult<i8>
fn try_from(values: &MultiValues) -> ValueResult<i8>
Copies or clones the first element without converting its runtime type.
§Parameters
values: The collection to read without modifying its storage.
§Returns
An owned copy or clone of the first element.
§Errors
Returns a missing-value error for an empty or matching unset collection, or a type-mismatch error when the runtime element type differs.
Source§impl TryFrom<&MultiValues> for Vec<i8>
impl TryFrom<&MultiValues> for Vec<i8>
Source§type Error = ValueError
type Error = ValueError
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: &MultiValues) -> ValueResult<Vec<i8>>
fn try_from(values: &MultiValues) -> ValueResult<Vec<i8>>
Copies or clones all elements while preserving their order.
§Parameters
values: The collection to read without modifying its storage.
§Returns
An owned vector, including an empty vector for matching empty storage.
§Errors
Returns a missing-value error for a matching unset collection, or a type-mismatch error when the runtime element type differs.
Source§impl TryFrom<&MultiValues> for i16
impl TryFrom<&MultiValues> for i16
Source§type Error = ValueError
type Error = ValueError
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: &MultiValues) -> ValueResult<i16>
fn try_from(values: &MultiValues) -> ValueResult<i16>
Copies or clones the first element without converting its runtime type.
§Parameters
values: The collection to read without modifying its storage.
§Returns
An owned copy or clone of the first element.
§Errors
Returns a missing-value error for an empty or matching unset collection, or a type-mismatch error when the runtime element type differs.
Source§impl TryFrom<&MultiValues> for Vec<i16>
impl TryFrom<&MultiValues> for Vec<i16>
Source§type Error = ValueError
type Error = ValueError
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: &MultiValues) -> ValueResult<Vec<i16>>
fn try_from(values: &MultiValues) -> ValueResult<Vec<i16>>
Copies or clones all elements while preserving their order.
§Parameters
values: The collection to read without modifying its storage.
§Returns
An owned vector, including an empty vector for matching empty storage.
§Errors
Returns a missing-value error for a matching unset collection, or a type-mismatch error when the runtime element type differs.
Source§impl TryFrom<&MultiValues> for i32
impl TryFrom<&MultiValues> for i32
Source§type Error = ValueError
type Error = ValueError
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: &MultiValues) -> ValueResult<i32>
fn try_from(values: &MultiValues) -> ValueResult<i32>
Copies or clones the first element without converting its runtime type.
§Parameters
values: The collection to read without modifying its storage.
§Returns
An owned copy or clone of the first element.
§Errors
Returns a missing-value error for an empty or matching unset collection, or a type-mismatch error when the runtime element type differs.
Source§impl TryFrom<&MultiValues> for Vec<i32>
impl TryFrom<&MultiValues> for Vec<i32>
Source§type Error = ValueError
type Error = ValueError
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: &MultiValues) -> ValueResult<Vec<i32>>
fn try_from(values: &MultiValues) -> ValueResult<Vec<i32>>
Copies or clones all elements while preserving their order.
§Parameters
values: The collection to read without modifying its storage.
§Returns
An owned vector, including an empty vector for matching empty storage.
§Errors
Returns a missing-value error for a matching unset collection, or a type-mismatch error when the runtime element type differs.
Source§impl TryFrom<&MultiValues> for i64
impl TryFrom<&MultiValues> for i64
Source§type Error = ValueError
type Error = ValueError
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: &MultiValues) -> ValueResult<i64>
fn try_from(values: &MultiValues) -> ValueResult<i64>
Copies or clones the first element without converting its runtime type.
§Parameters
values: The collection to read without modifying its storage.
§Returns
An owned copy or clone of the first element.
§Errors
Returns a missing-value error for an empty or matching unset collection, or a type-mismatch error when the runtime element type differs.
Source§impl TryFrom<&MultiValues> for Vec<i64>
impl TryFrom<&MultiValues> for Vec<i64>
Source§type Error = ValueError
type Error = ValueError
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: &MultiValues) -> ValueResult<Vec<i64>>
fn try_from(values: &MultiValues) -> ValueResult<Vec<i64>>
Copies or clones all elements while preserving their order.
§Parameters
values: The collection to read without modifying its storage.
§Returns
An owned vector, including an empty vector for matching empty storage.
§Errors
Returns a missing-value error for a matching unset collection, or a type-mismatch error when the runtime element type differs.
Source§impl TryFrom<&MultiValues> for i128
impl TryFrom<&MultiValues> for i128
Source§type Error = ValueError
type Error = ValueError
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: &MultiValues) -> ValueResult<i128>
fn try_from(values: &MultiValues) -> ValueResult<i128>
Copies or clones the first element without converting its runtime type.
§Parameters
values: The collection to read without modifying its storage.
§Returns
An owned copy or clone of the first element.
§Errors
Returns a missing-value error for an empty or matching unset collection, or a type-mismatch error when the runtime element type differs.
Source§impl TryFrom<&MultiValues> for Vec<i128>
impl TryFrom<&MultiValues> for Vec<i128>
Source§type Error = ValueError
type Error = ValueError
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: &MultiValues) -> ValueResult<Vec<i128>>
fn try_from(values: &MultiValues) -> ValueResult<Vec<i128>>
Copies or clones all elements while preserving their order.
§Parameters
values: The collection to read without modifying its storage.
§Returns
An owned vector, including an empty vector for matching empty storage.
§Errors
Returns a missing-value error for a matching unset collection, or a type-mismatch error when the runtime element type differs.
Source§impl TryFrom<&MultiValues> for u8
impl TryFrom<&MultiValues> for u8
Source§type Error = ValueError
type Error = ValueError
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: &MultiValues) -> ValueResult<u8>
fn try_from(values: &MultiValues) -> ValueResult<u8>
Copies or clones the first element without converting its runtime type.
§Parameters
values: The collection to read without modifying its storage.
§Returns
An owned copy or clone of the first element.
§Errors
Returns a missing-value error for an empty or matching unset collection, or a type-mismatch error when the runtime element type differs.
Source§impl TryFrom<&MultiValues> for Vec<u8>
impl TryFrom<&MultiValues> for Vec<u8>
Source§type Error = ValueError
type Error = ValueError
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: &MultiValues) -> ValueResult<Vec<u8>>
fn try_from(values: &MultiValues) -> ValueResult<Vec<u8>>
Copies or clones all elements while preserving their order.
§Parameters
values: The collection to read without modifying its storage.
§Returns
An owned vector, including an empty vector for matching empty storage.
§Errors
Returns a missing-value error for a matching unset collection, or a type-mismatch error when the runtime element type differs.
Source§impl TryFrom<&MultiValues> for u16
impl TryFrom<&MultiValues> for u16
Source§type Error = ValueError
type Error = ValueError
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: &MultiValues) -> ValueResult<u16>
fn try_from(values: &MultiValues) -> ValueResult<u16>
Copies or clones the first element without converting its runtime type.
§Parameters
values: The collection to read without modifying its storage.
§Returns
An owned copy or clone of the first element.
§Errors
Returns a missing-value error for an empty or matching unset collection, or a type-mismatch error when the runtime element type differs.
Source§impl TryFrom<&MultiValues> for Vec<u16>
impl TryFrom<&MultiValues> for Vec<u16>
Source§type Error = ValueError
type Error = ValueError
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: &MultiValues) -> ValueResult<Vec<u16>>
fn try_from(values: &MultiValues) -> ValueResult<Vec<u16>>
Copies or clones all elements while preserving their order.
§Parameters
values: The collection to read without modifying its storage.
§Returns
An owned vector, including an empty vector for matching empty storage.
§Errors
Returns a missing-value error for a matching unset collection, or a type-mismatch error when the runtime element type differs.
Source§impl TryFrom<&MultiValues> for u32
impl TryFrom<&MultiValues> for u32
Source§type Error = ValueError
type Error = ValueError
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: &MultiValues) -> ValueResult<u32>
fn try_from(values: &MultiValues) -> ValueResult<u32>
Copies or clones the first element without converting its runtime type.
§Parameters
values: The collection to read without modifying its storage.
§Returns
An owned copy or clone of the first element.
§Errors
Returns a missing-value error for an empty or matching unset collection, or a type-mismatch error when the runtime element type differs.
Source§impl TryFrom<&MultiValues> for Vec<u32>
impl TryFrom<&MultiValues> for Vec<u32>
Source§type Error = ValueError
type Error = ValueError
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: &MultiValues) -> ValueResult<Vec<u32>>
fn try_from(values: &MultiValues) -> ValueResult<Vec<u32>>
Copies or clones all elements while preserving their order.
§Parameters
values: The collection to read without modifying its storage.
§Returns
An owned vector, including an empty vector for matching empty storage.
§Errors
Returns a missing-value error for a matching unset collection, or a type-mismatch error when the runtime element type differs.
Source§impl TryFrom<&MultiValues> for u64
impl TryFrom<&MultiValues> for u64
Source§type Error = ValueError
type Error = ValueError
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: &MultiValues) -> ValueResult<u64>
fn try_from(values: &MultiValues) -> ValueResult<u64>
Copies or clones the first element without converting its runtime type.
§Parameters
values: The collection to read without modifying its storage.
§Returns
An owned copy or clone of the first element.
§Errors
Returns a missing-value error for an empty or matching unset collection, or a type-mismatch error when the runtime element type differs.
Source§impl TryFrom<&MultiValues> for Vec<u64>
impl TryFrom<&MultiValues> for Vec<u64>
Source§type Error = ValueError
type Error = ValueError
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: &MultiValues) -> ValueResult<Vec<u64>>
fn try_from(values: &MultiValues) -> ValueResult<Vec<u64>>
Copies or clones all elements while preserving their order.
§Parameters
values: The collection to read without modifying its storage.
§Returns
An owned vector, including an empty vector for matching empty storage.
§Errors
Returns a missing-value error for a matching unset collection, or a type-mismatch error when the runtime element type differs.
Source§impl TryFrom<&MultiValues> for u128
impl TryFrom<&MultiValues> for u128
Source§type Error = ValueError
type Error = ValueError
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: &MultiValues) -> ValueResult<u128>
fn try_from(values: &MultiValues) -> ValueResult<u128>
Copies or clones the first element without converting its runtime type.
§Parameters
values: The collection to read without modifying its storage.
§Returns
An owned copy or clone of the first element.
§Errors
Returns a missing-value error for an empty or matching unset collection, or a type-mismatch error when the runtime element type differs.
Source§impl TryFrom<&MultiValues> for Vec<u128>
impl TryFrom<&MultiValues> for Vec<u128>
Source§type Error = ValueError
type Error = ValueError
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: &MultiValues) -> ValueResult<Vec<u128>>
fn try_from(values: &MultiValues) -> ValueResult<Vec<u128>>
Copies or clones all elements while preserving their order.
§Parameters
values: The collection to read without modifying its storage.
§Returns
An owned vector, including an empty vector for matching empty storage.
§Errors
Returns a missing-value error for a matching unset collection, or a type-mismatch error when the runtime element type differs.
Source§impl TryFrom<&MultiValues> for f32
impl TryFrom<&MultiValues> for f32
Source§type Error = ValueError
type Error = ValueError
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: &MultiValues) -> ValueResult<f32>
fn try_from(values: &MultiValues) -> ValueResult<f32>
Copies or clones the first element without converting its runtime type.
§Parameters
values: The collection to read without modifying its storage.
§Returns
An owned copy or clone of the first element.
§Errors
Returns a missing-value error for an empty or matching unset collection, or a type-mismatch error when the runtime element type differs.
Source§impl TryFrom<&MultiValues> for Vec<f32>
impl TryFrom<&MultiValues> for Vec<f32>
Source§type Error = ValueError
type Error = ValueError
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: &MultiValues) -> ValueResult<Vec<f32>>
fn try_from(values: &MultiValues) -> ValueResult<Vec<f32>>
Copies or clones all elements while preserving their order.
§Parameters
values: The collection to read without modifying its storage.
§Returns
An owned vector, including an empty vector for matching empty storage.
§Errors
Returns a missing-value error for a matching unset collection, or a type-mismatch error when the runtime element type differs.
Source§impl TryFrom<&MultiValues> for f64
impl TryFrom<&MultiValues> for f64
Source§type Error = ValueError
type Error = ValueError
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: &MultiValues) -> ValueResult<f64>
fn try_from(values: &MultiValues) -> ValueResult<f64>
Copies or clones the first element without converting its runtime type.
§Parameters
values: The collection to read without modifying its storage.
§Returns
An owned copy or clone of the first element.
§Errors
Returns a missing-value error for an empty or matching unset collection, or a type-mismatch error when the runtime element type differs.
Source§impl TryFrom<&MultiValues> for Vec<f64>
impl TryFrom<&MultiValues> for Vec<f64>
Source§type Error = ValueError
type Error = ValueError
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: &MultiValues) -> ValueResult<Vec<f64>>
fn try_from(values: &MultiValues) -> ValueResult<Vec<f64>>
Copies or clones all elements while preserving their order.
§Parameters
values: The collection to read without modifying its storage.
§Returns
An owned vector, including an empty vector for matching empty storage.
§Errors
Returns a missing-value error for a matching unset collection, or a type-mismatch error when the runtime element type differs.
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
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: &MultiValues) -> ValueResult<BigInt>
fn try_from(values: &MultiValues) -> ValueResult<BigInt>
Copies or clones the first element without converting its runtime type.
§Parameters
values: The collection to read without modifying its storage.
§Returns
An owned copy or clone of the first element.
§Errors
Returns a missing-value error for an empty or matching unset collection, or a type-mismatch error when the runtime element type differs.
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
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: &MultiValues) -> ValueResult<Vec<BigInt>>
fn try_from(values: &MultiValues) -> ValueResult<Vec<BigInt>>
Copies or clones all elements while preserving their order.
§Parameters
values: The collection to read without modifying its storage.
§Returns
An owned vector, including an empty vector for matching empty storage.
§Errors
Returns a missing-value error for a matching unset collection, or a type-mismatch error when the runtime element type differs.
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
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: &MultiValues) -> ValueResult<BigDecimal>
fn try_from(values: &MultiValues) -> ValueResult<BigDecimal>
Copies or clones the first element without converting its runtime type.
§Parameters
values: The collection to read without modifying its storage.
§Returns
An owned copy or clone of the first element.
§Errors
Returns a missing-value error for an empty or matching unset collection, or a type-mismatch error when the runtime element type differs.
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
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: &MultiValues) -> ValueResult<Vec<BigDecimal>>
fn try_from(values: &MultiValues) -> ValueResult<Vec<BigDecimal>>
Copies or clones all elements while preserving their order.
§Parameters
values: The collection to read without modifying its storage.
§Returns
An owned vector, including an empty vector for matching empty storage.
§Errors
Returns a missing-value error for a matching unset collection, or a type-mismatch error when the runtime element type differs.
Source§impl TryFrom<&MultiValues> for String
impl TryFrom<&MultiValues> for String
Source§type Error = ValueError
type Error = ValueError
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: &MultiValues) -> ValueResult<String>
fn try_from(values: &MultiValues) -> ValueResult<String>
Copies or clones the first element without converting its runtime type.
§Parameters
values: The collection to read without modifying its storage.
§Returns
An owned copy or clone of the first element.
§Errors
Returns a missing-value error for an empty or matching unset collection, or a type-mismatch error when the runtime element type differs.
Source§impl TryFrom<&MultiValues> for Vec<String>
impl TryFrom<&MultiValues> for Vec<String>
Source§type Error = ValueError
type Error = ValueError
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: &MultiValues) -> ValueResult<Vec<String>>
fn try_from(values: &MultiValues) -> ValueResult<Vec<String>>
Copies or clones all elements while preserving their order.
§Parameters
values: The collection to read without modifying its storage.
§Returns
An owned vector, including an empty vector for matching empty storage.
§Errors
Returns a missing-value error for a matching unset collection, or a type-mismatch error when the runtime element type differs.
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
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: &MultiValues) -> ValueResult<NaiveDate>
fn try_from(values: &MultiValues) -> ValueResult<NaiveDate>
Copies or clones the first element without converting its runtime type.
§Parameters
values: The collection to read without modifying its storage.
§Returns
An owned copy or clone of the first element.
§Errors
Returns a missing-value error for an empty or matching unset collection, or a type-mismatch error when the runtime element type differs.
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
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: &MultiValues) -> ValueResult<Vec<NaiveDate>>
fn try_from(values: &MultiValues) -> ValueResult<Vec<NaiveDate>>
Copies or clones all elements while preserving their order.
§Parameters
values: The collection to read without modifying its storage.
§Returns
An owned vector, including an empty vector for matching empty storage.
§Errors
Returns a missing-value error for a matching unset collection, or a type-mismatch error when the runtime element type differs.
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
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: &MultiValues) -> ValueResult<NaiveTime>
fn try_from(values: &MultiValues) -> ValueResult<NaiveTime>
Copies or clones the first element without converting its runtime type.
§Parameters
values: The collection to read without modifying its storage.
§Returns
An owned copy or clone of the first element.
§Errors
Returns a missing-value error for an empty or matching unset collection, or a type-mismatch error when the runtime element type differs.
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
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: &MultiValues) -> ValueResult<Vec<NaiveTime>>
fn try_from(values: &MultiValues) -> ValueResult<Vec<NaiveTime>>
Copies or clones all elements while preserving their order.
§Parameters
values: The collection to read without modifying its storage.
§Returns
An owned vector, including an empty vector for matching empty storage.
§Errors
Returns a missing-value error for a matching unset collection, or a type-mismatch error when the runtime element type differs.
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
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: &MultiValues) -> ValueResult<NaiveDateTime>
fn try_from(values: &MultiValues) -> ValueResult<NaiveDateTime>
Copies or clones the first element without converting its runtime type.
§Parameters
values: The collection to read without modifying its storage.
§Returns
An owned copy or clone of the first element.
§Errors
Returns a missing-value error for an empty or matching unset collection, or a type-mismatch error when the runtime element type differs.
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
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: &MultiValues) -> ValueResult<Vec<NaiveDateTime>>
fn try_from(values: &MultiValues) -> ValueResult<Vec<NaiveDateTime>>
Copies or clones all elements while preserving their order.
§Parameters
values: The collection to read without modifying its storage.
§Returns
An owned vector, including an empty vector for matching empty storage.
§Errors
Returns a missing-value error for a matching unset collection, or a type-mismatch error when the runtime element type differs.
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
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: &MultiValues) -> ValueResult<DateTime<Utc>>
fn try_from(values: &MultiValues) -> ValueResult<DateTime<Utc>>
Copies or clones the first element without converting its runtime type.
§Parameters
values: The collection to read without modifying its storage.
§Returns
An owned copy or clone of the first element.
§Errors
Returns a missing-value error for an empty or matching unset collection, or a type-mismatch error when the runtime element type differs.
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
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: &MultiValues) -> ValueResult<Vec<DateTime<Utc>>>
fn try_from(values: &MultiValues) -> ValueResult<Vec<DateTime<Utc>>>
Copies or clones all elements while preserving their order.
§Parameters
values: The collection to read without modifying its storage.
§Returns
An owned vector, including an empty vector for matching empty storage.
§Errors
Returns a missing-value error for a matching unset collection, or a type-mismatch error when the runtime element type differs.
Source§impl TryFrom<&MultiValues> for Duration
impl TryFrom<&MultiValues> for Duration
Source§type Error = ValueError
type Error = ValueError
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: &MultiValues) -> ValueResult<Duration>
fn try_from(values: &MultiValues) -> ValueResult<Duration>
Copies or clones the first element without converting its runtime type.
§Parameters
values: The collection to read without modifying its storage.
§Returns
An owned copy or clone of the first element.
§Errors
Returns a missing-value error for an empty or matching unset collection, or a type-mismatch error when the runtime element type differs.
Source§impl TryFrom<&MultiValues> for Vec<Duration>
impl TryFrom<&MultiValues> for Vec<Duration>
Source§type Error = ValueError
type Error = ValueError
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: &MultiValues) -> ValueResult<Vec<Duration>>
fn try_from(values: &MultiValues) -> ValueResult<Vec<Duration>>
Copies or clones all elements while preserving their order.
§Parameters
values: The collection to read without modifying its storage.
§Returns
An owned vector, including an empty vector for matching empty storage.
§Errors
Returns a missing-value error for a matching unset collection, or a type-mismatch error when the runtime element type differs.
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
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: &MultiValues) -> ValueResult<Url>
fn try_from(values: &MultiValues) -> ValueResult<Url>
Copies or clones the first element without converting its runtime type.
§Parameters
values: The collection to read without modifying its storage.
§Returns
An owned copy or clone of the first element.
§Errors
Returns a missing-value error for an empty or matching unset collection, or a type-mismatch error when the runtime element type differs.
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
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: &MultiValues) -> ValueResult<Vec<Url>>
fn try_from(values: &MultiValues) -> ValueResult<Vec<Url>>
Copies or clones all elements while preserving their order.
§Parameters
values: The collection to read without modifying its storage.
§Returns
An owned vector, including an empty vector for matching empty storage.
§Errors
Returns a missing-value error for a matching unset collection, or a type-mismatch error when the runtime element type differs.
Source§impl TryFrom<&MultiValues> for HashMap<String, String>
impl TryFrom<&MultiValues> for HashMap<String, String>
Source§type Error = ValueError
type Error = ValueError
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: &MultiValues) -> ValueResult<HashMap<String, String>>
fn try_from(values: &MultiValues) -> ValueResult<HashMap<String, String>>
Copies or clones the first element without converting its runtime type.
§Parameters
values: The collection to read without modifying its storage.
§Returns
An owned copy or clone of the first element.
§Errors
Returns a missing-value error for an empty or matching unset collection, or a type-mismatch error when the runtime element type differs.
Source§impl TryFrom<&MultiValues> for Vec<HashMap<String, String>>
impl TryFrom<&MultiValues> for Vec<HashMap<String, String>>
Source§type Error = ValueError
type Error = ValueError
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: &MultiValues) -> ValueResult<Vec<HashMap<String, String>>>
fn try_from(values: &MultiValues) -> ValueResult<Vec<HashMap<String, String>>>
Copies or clones all elements while preserving their order.
§Parameters
values: The collection to read without modifying its storage.
§Returns
An owned vector, including an empty vector for matching empty storage.
§Errors
Returns a missing-value error for a matching unset collection, or a type-mismatch error when the runtime element type differs.
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
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: &MultiValues) -> ValueResult<Value>
fn try_from(values: &MultiValues) -> ValueResult<Value>
Copies or clones the first element without converting its runtime type.
§Parameters
values: The collection to read without modifying its storage.
§Returns
An owned copy or clone of the first element.
§Errors
Returns a missing-value error for an empty or matching unset collection, or a type-mismatch error when the runtime element type differs.
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
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: &MultiValues) -> ValueResult<Vec<Value>>
fn try_from(values: &MultiValues) -> ValueResult<Vec<Value>>
Copies or clones all elements while preserving their order.
§Parameters
values: The collection to read without modifying its storage.
§Returns
An owned vector, including an empty vector for matching empty storage.
§Errors
Returns a missing-value error for a matching unset collection, or a type-mismatch error when the runtime element type differs.
Source§impl TryFrom<MultiValues> for Vec<bool>
impl TryFrom<MultiValues> for Vec<bool>
Source§type Error = ValueError
type Error = ValueError
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: MultiValues) -> ValueResult<Self>
fn try_from(values: MultiValues) -> ValueResult<Self>
Moves the stored vector out of the collection without cloning its elements.
§Parameters
values: The collection consumed by this conversion.
§Returns
The owned vector in its original order, possibly empty.
§Errors
Returns a missing-value error for a matching unset collection, or a type-mismatch error when the runtime element type differs.
Source§impl TryFrom<MultiValues> for Vec<char>
impl TryFrom<MultiValues> for Vec<char>
Source§type Error = ValueError
type Error = ValueError
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: MultiValues) -> ValueResult<Self>
fn try_from(values: MultiValues) -> ValueResult<Self>
Moves the stored vector out of the collection without cloning its elements.
§Parameters
values: The collection consumed by this conversion.
§Returns
The owned vector in its original order, possibly empty.
§Errors
Returns a missing-value error for a matching unset collection, or a type-mismatch error when the runtime element type differs.
Source§impl TryFrom<MultiValues> for Vec<i8>
impl TryFrom<MultiValues> for Vec<i8>
Source§type Error = ValueError
type Error = ValueError
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: MultiValues) -> ValueResult<Self>
fn try_from(values: MultiValues) -> ValueResult<Self>
Moves the stored vector out of the collection without cloning its elements.
§Parameters
values: The collection consumed by this conversion.
§Returns
The owned vector in its original order, possibly empty.
§Errors
Returns a missing-value error for a matching unset collection, or a type-mismatch error when the runtime element type differs.
Source§impl TryFrom<MultiValues> for Vec<i16>
impl TryFrom<MultiValues> for Vec<i16>
Source§type Error = ValueError
type Error = ValueError
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: MultiValues) -> ValueResult<Self>
fn try_from(values: MultiValues) -> ValueResult<Self>
Moves the stored vector out of the collection without cloning its elements.
§Parameters
values: The collection consumed by this conversion.
§Returns
The owned vector in its original order, possibly empty.
§Errors
Returns a missing-value error for a matching unset collection, or a type-mismatch error when the runtime element type differs.
Source§impl TryFrom<MultiValues> for Vec<i32>
impl TryFrom<MultiValues> for Vec<i32>
Source§type Error = ValueError
type Error = ValueError
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: MultiValues) -> ValueResult<Self>
fn try_from(values: MultiValues) -> ValueResult<Self>
Moves the stored vector out of the collection without cloning its elements.
§Parameters
values: The collection consumed by this conversion.
§Returns
The owned vector in its original order, possibly empty.
§Errors
Returns a missing-value error for a matching unset collection, or a type-mismatch error when the runtime element type differs.
Source§impl TryFrom<MultiValues> for Vec<i64>
impl TryFrom<MultiValues> for Vec<i64>
Source§type Error = ValueError
type Error = ValueError
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: MultiValues) -> ValueResult<Self>
fn try_from(values: MultiValues) -> ValueResult<Self>
Moves the stored vector out of the collection without cloning its elements.
§Parameters
values: The collection consumed by this conversion.
§Returns
The owned vector in its original order, possibly empty.
§Errors
Returns a missing-value error for a matching unset collection, or a type-mismatch error when the runtime element type differs.
Source§impl TryFrom<MultiValues> for Vec<i128>
impl TryFrom<MultiValues> for Vec<i128>
Source§type Error = ValueError
type Error = ValueError
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: MultiValues) -> ValueResult<Self>
fn try_from(values: MultiValues) -> ValueResult<Self>
Moves the stored vector out of the collection without cloning its elements.
§Parameters
values: The collection consumed by this conversion.
§Returns
The owned vector in its original order, possibly empty.
§Errors
Returns a missing-value error for a matching unset collection, or a type-mismatch error when the runtime element type differs.
Source§impl TryFrom<MultiValues> for Vec<u8>
impl TryFrom<MultiValues> for Vec<u8>
Source§type Error = ValueError
type Error = ValueError
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: MultiValues) -> ValueResult<Self>
fn try_from(values: MultiValues) -> ValueResult<Self>
Moves the stored vector out of the collection without cloning its elements.
§Parameters
values: The collection consumed by this conversion.
§Returns
The owned vector in its original order, possibly empty.
§Errors
Returns a missing-value error for a matching unset collection, or a type-mismatch error when the runtime element type differs.
Source§impl TryFrom<MultiValues> for Vec<u16>
impl TryFrom<MultiValues> for Vec<u16>
Source§type Error = ValueError
type Error = ValueError
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: MultiValues) -> ValueResult<Self>
fn try_from(values: MultiValues) -> ValueResult<Self>
Moves the stored vector out of the collection without cloning its elements.
§Parameters
values: The collection consumed by this conversion.
§Returns
The owned vector in its original order, possibly empty.
§Errors
Returns a missing-value error for a matching unset collection, or a type-mismatch error when the runtime element type differs.
Source§impl TryFrom<MultiValues> for Vec<u32>
impl TryFrom<MultiValues> for Vec<u32>
Source§type Error = ValueError
type Error = ValueError
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: MultiValues) -> ValueResult<Self>
fn try_from(values: MultiValues) -> ValueResult<Self>
Moves the stored vector out of the collection without cloning its elements.
§Parameters
values: The collection consumed by this conversion.
§Returns
The owned vector in its original order, possibly empty.
§Errors
Returns a missing-value error for a matching unset collection, or a type-mismatch error when the runtime element type differs.
Source§impl TryFrom<MultiValues> for Vec<u64>
impl TryFrom<MultiValues> for Vec<u64>
Source§type Error = ValueError
type Error = ValueError
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: MultiValues) -> ValueResult<Self>
fn try_from(values: MultiValues) -> ValueResult<Self>
Moves the stored vector out of the collection without cloning its elements.
§Parameters
values: The collection consumed by this conversion.
§Returns
The owned vector in its original order, possibly empty.
§Errors
Returns a missing-value error for a matching unset collection, or a type-mismatch error when the runtime element type differs.
Source§impl TryFrom<MultiValues> for Vec<u128>
impl TryFrom<MultiValues> for Vec<u128>
Source§type Error = ValueError
type Error = ValueError
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: MultiValues) -> ValueResult<Self>
fn try_from(values: MultiValues) -> ValueResult<Self>
Moves the stored vector out of the collection without cloning its elements.
§Parameters
values: The collection consumed by this conversion.
§Returns
The owned vector in its original order, possibly empty.
§Errors
Returns a missing-value error for a matching unset collection, or a type-mismatch error when the runtime element type differs.
Source§impl TryFrom<MultiValues> for Vec<f32>
impl TryFrom<MultiValues> for Vec<f32>
Source§type Error = ValueError
type Error = ValueError
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: MultiValues) -> ValueResult<Self>
fn try_from(values: MultiValues) -> ValueResult<Self>
Moves the stored vector out of the collection without cloning its elements.
§Parameters
values: The collection consumed by this conversion.
§Returns
The owned vector in its original order, possibly empty.
§Errors
Returns a missing-value error for a matching unset collection, or a type-mismatch error when the runtime element type differs.
Source§impl TryFrom<MultiValues> for Vec<f64>
impl TryFrom<MultiValues> for Vec<f64>
Source§type Error = ValueError
type Error = ValueError
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: MultiValues) -> ValueResult<Self>
fn try_from(values: MultiValues) -> ValueResult<Self>
Moves the stored vector out of the collection without cloning its elements.
§Parameters
values: The collection consumed by this conversion.
§Returns
The owned vector in its original order, possibly empty.
§Errors
Returns a missing-value error for a matching unset collection, or a type-mismatch error when the runtime element type differs.
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
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: MultiValues) -> ValueResult<Self>
fn try_from(values: MultiValues) -> ValueResult<Self>
Moves the stored vector out of the collection without cloning its elements.
§Parameters
values: The collection consumed by this conversion.
§Returns
The owned vector in its original order, possibly empty.
§Errors
Returns a missing-value error for a matching unset collection, or a type-mismatch error when the runtime element type differs.
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
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: MultiValues) -> ValueResult<Self>
fn try_from(values: MultiValues) -> ValueResult<Self>
Moves the stored vector out of the collection without cloning its elements.
§Parameters
values: The collection consumed by this conversion.
§Returns
The owned vector in its original order, possibly empty.
§Errors
Returns a missing-value error for a matching unset collection, or a type-mismatch error when the runtime element type differs.
Source§impl TryFrom<MultiValues> for Vec<String>
impl TryFrom<MultiValues> for Vec<String>
Source§type Error = ValueError
type Error = ValueError
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: MultiValues) -> ValueResult<Self>
fn try_from(values: MultiValues) -> ValueResult<Self>
Moves the stored vector out of the collection without cloning its elements.
§Parameters
values: The collection consumed by this conversion.
§Returns
The owned vector in its original order, possibly empty.
§Errors
Returns a missing-value error for a matching unset collection, or a type-mismatch error when the runtime element type differs.
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
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: MultiValues) -> ValueResult<Self>
fn try_from(values: MultiValues) -> ValueResult<Self>
Moves the stored vector out of the collection without cloning its elements.
§Parameters
values: The collection consumed by this conversion.
§Returns
The owned vector in its original order, possibly empty.
§Errors
Returns a missing-value error for a matching unset collection, or a type-mismatch error when the runtime element type differs.
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
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: MultiValues) -> ValueResult<Self>
fn try_from(values: MultiValues) -> ValueResult<Self>
Moves the stored vector out of the collection without cloning its elements.
§Parameters
values: The collection consumed by this conversion.
§Returns
The owned vector in its original order, possibly empty.
§Errors
Returns a missing-value error for a matching unset collection, or a type-mismatch error when the runtime element type differs.
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
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: MultiValues) -> ValueResult<Self>
fn try_from(values: MultiValues) -> ValueResult<Self>
Moves the stored vector out of the collection without cloning its elements.
§Parameters
values: The collection consumed by this conversion.
§Returns
The owned vector in its original order, possibly empty.
§Errors
Returns a missing-value error for a matching unset collection, or a type-mismatch error when the runtime element type differs.
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
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: MultiValues) -> ValueResult<Self>
fn try_from(values: MultiValues) -> ValueResult<Self>
Moves the stored vector out of the collection without cloning its elements.
§Parameters
values: The collection consumed by this conversion.
§Returns
The owned vector in its original order, possibly empty.
§Errors
Returns a missing-value error for a matching unset collection, or a type-mismatch error when the runtime element type differs.
Source§impl TryFrom<MultiValues> for Vec<Duration>
impl TryFrom<MultiValues> for Vec<Duration>
Source§type Error = ValueError
type Error = ValueError
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: MultiValues) -> ValueResult<Self>
fn try_from(values: MultiValues) -> ValueResult<Self>
Moves the stored vector out of the collection without cloning its elements.
§Parameters
values: The collection consumed by this conversion.
§Returns
The owned vector in its original order, possibly empty.
§Errors
Returns a missing-value error for a matching unset collection, or a type-mismatch error when the runtime element type differs.
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
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: MultiValues) -> ValueResult<Self>
fn try_from(values: MultiValues) -> ValueResult<Self>
Moves the stored vector out of the collection without cloning its elements.
§Parameters
values: The collection consumed by this conversion.
§Returns
The owned vector in its original order, possibly empty.
§Errors
Returns a missing-value error for a matching unset collection, or a type-mismatch error when the runtime element type differs.
Source§impl TryFrom<MultiValues> for Vec<HashMap<String, String>>
impl TryFrom<MultiValues> for Vec<HashMap<String, String>>
Source§type Error = ValueError
type Error = ValueError
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: MultiValues) -> ValueResult<Self>
fn try_from(values: MultiValues) -> ValueResult<Self>
Moves the stored vector out of the collection without cloning its elements.
§Parameters
values: The collection consumed by this conversion.
§Returns
The owned vector in its original order, possibly empty.
§Errors
Returns a missing-value error for a matching unset collection, or a type-mismatch error when the runtime element type differs.
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
Reports a missing value or an exact runtime type mismatch.
Source§fn try_from(values: MultiValues) -> ValueResult<Self>
fn try_from(values: MultiValues) -> ValueResult<Self>
Moves the stored vector out of the collection without cloning its elements.
§Parameters
values: The collection consumed by this conversion.
§Returns
The owned vector in its original order, possibly empty.
§Errors
Returns a missing-value error for a matching unset collection, or a type-mismatch error when the runtime element type differs.
Source§impl TryFrom<MultiValues> for ValueWirePayloadV1
impl TryFrom<MultiValues> for ValueWirePayloadV1
Source§type Error = ValueWireEncodeError
type Error = ValueWireEncodeError
Validation failure when the runtime value cannot satisfy the V1 wire contract.
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.
§Parameters
value- Homogeneous collection to validate and take ownership of.
§Returns
A validated owned unversioned V1 payload.
§Errors
Returns ValueWireEncodeError::NonFiniteFloat for a non-finite
float element, ValueWireEncodeError::BigDecimalScaleTooLarge for
an element whose decimal exponent is outside V1’s supported range, or
ValueWireEncodeError::InstantYearOutOfRange for an instant outside
the supported UTC year range.
With the json feature, returns JsonNumberNotRoundTrippable if any
runtime JSON number in the collection, including a nested number,
cannot preserve its serde_json::Number identity under the V1 number
model.
Source§impl TryFrom<MultiValues> for ValueWireV1
impl TryFrom<MultiValues> for ValueWireV1
Source§type Error = ValueWireEncodeError
type Error = ValueWireEncodeError
Failure to represent the consumed runtime value under the V1 contract.
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.
§Parameters
values- Homogeneous collection to validate and consume.
§Returns
A V1 DTO preserving the input type and shape.
§Errors
Returns ValueWireEncodeError::NonFiniteFloat for a non-finite
float element, ValueWireEncodeError::BigDecimalScaleTooLarge for
an element whose decimal exponent is outside V1’s supported range, or
ValueWireEncodeError::InstantYearOutOfRange for an instant outside
the supported UTC year range.
With the json feature, returns JsonNumberNotRoundTrippable if any
runtime JSON number in the collection, including a nested number,
cannot preserve its serde_json::Number identity under the V1 number
model.