Skip to main content

MultiValues

Struct MultiValues 

Source
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

Source

pub const fn Unset(data_type: DataType) -> Self

Creates an unset collection with an explicit element type.

§Parameters
  • data_type - Element type retained while the collection is unset.
§Returns

An unset collection retaining data_type.

Source

pub const fn new_unset(data_type: DataType) -> Self

Creates an unset collection with an explicit element type.

§Parameters
  • data_type - Element type retained while the collection is unset.
§Returns

An unset collection retaining data_type.

Source

pub fn Bool(values: Vec<bool>) -> Self

Creates a collection of Boolean value list.

§Parameters
  • values - Homogeneous elements stored by the collection.
§Returns

A typed collection containing values in their original order.

Source

pub fn Char(values: Vec<char>) -> Self

Creates a collection of Character value list.

§Parameters
  • values - Homogeneous elements stored by the collection.
§Returns

A typed collection containing values in their original order.

Source

pub fn Int8(values: Vec<i8>) -> Self

Creates a collection of 8-bit signed integer list.

§Parameters
  • values - Homogeneous elements stored by the collection.
§Returns

A typed collection containing values in their original order.

Source

pub fn Int16(values: Vec<i16>) -> Self

Creates a collection of 16-bit signed integer list.

§Parameters
  • values - Homogeneous elements stored by the collection.
§Returns

A typed collection containing values in their original order.

Source

pub fn Int32(values: Vec<i32>) -> Self

Creates a collection of 32-bit signed integer list.

§Parameters
  • values - Homogeneous elements stored by the collection.
§Returns

A typed collection containing values in their original order.

Source

pub fn Int64(values: Vec<i64>) -> Self

Creates a collection of 64-bit signed integer list.

§Parameters
  • values - Homogeneous elements stored by the collection.
§Returns

A typed collection containing values in their original order.

Source

pub fn Int128(values: Vec<i128>) -> Self

Creates a collection of 128-bit signed integer list.

§Parameters
  • values - Homogeneous elements stored by the collection.
§Returns

A typed collection containing values in their original order.

Source

pub fn UInt8(values: Vec<u8>) -> Self

Creates a collection of 8-bit unsigned integer list.

§Parameters
  • values - Homogeneous elements stored by the collection.
§Returns

A typed collection containing values in their original order.

Source

pub fn UInt16(values: Vec<u16>) -> Self

Creates a collection of 16-bit unsigned integer list.

§Parameters
  • values - Homogeneous elements stored by the collection.
§Returns

A typed collection containing values in their original order.

Source

pub fn UInt32(values: Vec<u32>) -> Self

Creates a collection of 32-bit unsigned integer list.

§Parameters
  • values - Homogeneous elements stored by the collection.
§Returns

A typed collection containing values in their original order.

Source

pub fn UInt64(values: Vec<u64>) -> Self

Creates a collection of 64-bit unsigned integer list.

§Parameters
  • values - Homogeneous elements stored by the collection.
§Returns

A typed collection containing values in their original order.

Source

pub fn UInt128(values: Vec<u128>) -> Self

Creates a collection of 128-bit unsigned integer list.

§Parameters
  • values - Homogeneous elements stored by the collection.
§Returns

A typed collection containing values in their original order.

Source

pub fn Float32(values: Vec<f32>) -> Self

Creates a collection of 32-bit floating-point number list.

§Parameters
  • values - Homogeneous elements stored by the collection.
§Returns

A typed collection containing values in their original order.

Source

pub fn Float64(values: Vec<f64>) -> Self

Creates a collection of 64-bit floating-point number list.

§Parameters
  • values - Homogeneous elements stored by the collection.
§Returns

A typed collection containing values in their original order.

Source

pub fn BigInteger(values: Vec<BigInt>) -> Self

Available on crate feature big-integer only.

Creates a collection of Arbitrary-precision integer list.

§Parameters
  • values - Homogeneous elements stored by the collection.
§Returns

A typed collection containing values in their original order.

Source

pub fn BigDecimal(values: Vec<BigDecimal>) -> Self

Available on crate feature big-decimal only.

Creates a collection of Arbitrary-precision decimal list.

§Parameters
  • values - Homogeneous elements stored by the collection.
§Returns

A typed collection containing values in their original order.

Source

pub fn String(values: Vec<String>) -> Self

Creates a collection of String value list.

§Parameters
  • values - Homogeneous elements stored by the collection.
§Returns

A typed collection containing values in their original order.

Source

pub fn Date(values: Vec<NaiveDate>) -> Self

Available on crate feature chrono only.

Creates a collection of Calendar date list.

§Parameters
  • values - Homogeneous elements stored by the collection.
§Returns

A typed collection containing values in their original order.

Source

pub fn Time(values: Vec<NaiveTime>) -> Self

Available on crate feature chrono only.

Creates a collection of Time-of-day list.

§Parameters
  • values - Homogeneous elements stored by the collection.
§Returns

A typed collection containing values in their original order.

Source

pub fn DateTime(values: Vec<NaiveDateTime>) -> Self

Available on crate feature chrono only.

Creates a collection of Date-and-time list.

§Parameters
  • values - Homogeneous elements stored by the collection.
§Returns

A typed collection containing values in their original order.

Source

pub fn Instant(values: Vec<DateTime<Utc>>) -> Self

Available on crate feature chrono only.

Creates a collection of UTC instant list.

§Parameters
  • values - Homogeneous elements stored by the collection.
§Returns

A typed collection containing values in their original order.

Source

pub fn Duration(values: Vec<Duration>) -> Self

Creates a collection of Duration list.

§Parameters
  • values - Homogeneous elements stored by the collection.
§Returns

A typed collection containing values in their original order.

Source

pub fn Url(values: Vec<Url>) -> Self

Available on crate feature url only.

Creates a collection of URL list.

§Parameters
  • values - Homogeneous elements stored by the collection.
§Returns

A typed collection containing values in their original order.

Source

pub fn StringMap(values: Vec<HashMap<String, String>>) -> Self

Creates a collection of String-map list.

§Parameters
  • values - Homogeneous elements stored by the collection.
§Returns

A typed collection containing values in their original order.

Source

pub fn Json(values: Vec<Value>) -> Self

Available on crate feature json only.

Creates a collection of JSON value list.

§Parameters
  • values - Homogeneous elements stored by the collection.
§Returns

A typed collection containing values in their original order.

Source§

impl MultiValues

Source

pub fn get_first_ref<'a, T: ?Sized>(&'a self) -> ValueResult<&'a T>
where &'a T: TryFrom<&'a Value, Error = ValueError> + TryFrom<&'a Self, Error = ValueError>,

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();
Source

pub fn get_slice<'a, T>(&'a self) -> ValueResult<&'a [T]>
where &'a [T]: TryFrom<&'a Self, Error = ValueError>,

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 { .. }));
Source

pub fn hash_with_json_budget<H, R, Q>( &self, state: &mut H, budget: &mut JsonValueBudget<R, Q>, ) -> Result<(), MeasuredBudgetError<R, Q>>
where H: Hasher, R: Clone, Q: ResourceQuantity,

Available on crate feature 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 as Hash::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.
Source

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

Source

pub fn to_json_value(&self) -> ValueResult<JsonValue>

Available on crate features 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.

Source

pub fn to_json_value_with( &self, policy: &ConversionPolicy, limits: &ConversionLimits, ) -> ValueResult<JsonValue>

Available on crate features 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

Source

pub fn new<S>(values: S) -> Self
where 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
§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);
Source

pub fn get<T>(&self) -> ValueResult<Vec<T>>
where for<'a> Vec<T>: TryFrom<&'a Self, Error = ValueError>,

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]);
Source

pub fn get_or<T>( &self, default: impl IntoValueDefault<Vec<T>>, ) -> ValueResult<Vec<T>>
where for<'a> Vec<T>: TryFrom<&'a Self, Error = ValueError>,

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.

Source

pub fn get_or_else<T, F>(&self, default: F) -> ValueResult<Vec<T>>
where for<'a> Vec<T>: TryFrom<&'a Self, Error = ValueError>, F: FnOnce() -> 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.

Source

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.

Source

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();
Source

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();
Source

pub fn data_type(&self) -> DataType

Get the data type of the values

§Returns

Returns the data type corresponding to these multiple values

§Examples
use qubit_datatype::DataType;
use qubit_value::MultiValues;

let values = MultiValues::Int32(vec![1, 2, 3]);
assert_eq!(values.data_type(), DataType::Int32);
Source

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);
Source

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.

Source

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());
Source

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.

Source

pub fn first_value(&self) -> Value

Converts the first element to a single Value.

Returns Value::Unset with the same declared type when no element is stored.

§Returns

A cloned first item, or a typed unset value when no item exists.

Source

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.

Source

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
§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"]);
Source

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
§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]);
Source

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);
Source

pub fn merge(&mut self, other: &MultiValues) -> ValueResult<()>

Appends all values from another container with the same data type.

§Parameters
  • other - Collection whose values are cloned and appended.
§Returns

Ok(()) after appending, including when other is empty.

§Errors

Returns ValueError::TypeMismatch when other has a different data type.

Source

pub fn unset(&mut self)

Removes the concrete vector while preserving its declared data type.

Source

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

Source

pub fn to_first<T>(&self) -> ValueResult<T>

Available on crate feature 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.

Source

pub fn to_first_or<T>( &self, default: impl IntoValueDefault<T>, ) -> ValueResult<T>

Available on crate feature 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.

Source

pub fn to_first_or_else<T, F>(&self, default: F) -> ValueResult<T>
where T: DataConversionTarget, F: FnOnce() -> T,

Available on crate feature converter only.

Converts the first value or calls default when the collection is unset.

§Type Parameters
  • T - Target conversion type.
  • F - Deferred fallback producing T.
§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.

Source

pub fn to_first_with<T>( &self, policy: &ConversionPolicy, limits: &ConversionLimits, ) -> ValueResult<T>

Available on crate feature 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 to qubit_datatype.
  • limits - Conversion limits forwarded to qubit_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.

Source

pub fn to_first_in<T>( &self, session: &mut ConversionSession<'_>, ) -> ValueResult<T>

Available on crate feature 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.

Source

pub fn to_first_or_with<T>( &self, default: impl IntoValueDefault<T>, policy: &ConversionPolicy, limits: &ConversionLimits, ) -> ValueResult<T>

Available on crate feature 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 to qubit_datatype.
  • limits - Conversion limits forwarded to qubit_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());
Source

pub 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.

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 producing T.
§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.

Source

pub fn to_list<T>(&self) -> ValueResult<Vec<T>>

Available on crate feature 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.

Source

pub fn to_list_or<T>( &self, default: impl IntoValueDefault<Vec<T>>, ) -> ValueResult<Vec<T>>

Available on crate feature 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.

Source

pub fn to_list_or_else<T, F>(&self, default: F) -> ValueResult<Vec<T>>
where T: DataConversionTarget, F: FnOnce() -> Vec<T>,

Available on crate feature 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.

Source

pub fn to_list_with<T>( &self, policy: &ConversionPolicy, limits: &ConversionLimits, ) -> ValueResult<Vec<T>>

Available on crate feature 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 to qubit_datatype.
  • limits - Conversion limits forwarded to qubit_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.

Source

pub fn to_list_in<T>( &self, session: &mut ConversionSession<'_>, ) -> ValueResult<Vec<T>>

Available on crate feature 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.

Source

pub fn to_list_or_with<T>( &self, default: impl IntoValueDefault<Vec<T>>, policy: &ConversionPolicy, limits: &ConversionLimits, ) -> ValueResult<Vec<T>>

Available on crate feature 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 to qubit_datatype.
  • limits - Conversion limits forwarded to qubit_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.

Source

pub fn to_list_or_else_with<T, F>( &self, default: F, policy: &ConversionPolicy, limits: &ConversionLimits, ) -> ValueResult<Vec<T>>
where T: DataConversionTarget, F: FnOnce() -> Vec<T>,

Available on crate feature 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

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

pub fn get_first_date(&self) -> ValueResult<NaiveDate>

Available on crate feature 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.

Source

pub fn get_first_time(&self) -> ValueResult<NaiveTime>

Available on crate feature 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.

Source

pub fn get_first_datetime(&self) -> ValueResult<NaiveDateTime>

Available on crate feature 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.

Source

pub fn get_first_instant(&self) -> ValueResult<DateTime<Utc>>

Available on crate feature 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.

Source

pub fn get_first_biginteger(&self) -> ValueResult<BigInt>

Available on crate feature 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.

Source

pub fn get_first_bigdecimal(&self) -> ValueResult<BigDecimal>

Available on crate feature 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.

Source

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.

Source

pub fn get_first_url(&self) -> ValueResult<Url>

Available on crate feature 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.

Source

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.

Source

pub fn get_first_json(&self) -> ValueResult<JsonValue>

Available on crate feature 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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

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.

Source

pub fn get_dates(&self) -> ValueResult<&[NaiveDate]>

Available on crate feature 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.

Source

pub fn get_times(&self) -> ValueResult<&[NaiveTime]>

Available on crate feature 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.

Source

pub fn get_datetimes(&self) -> ValueResult<&[NaiveDateTime]>

Available on crate feature 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.

Source

pub fn get_instants(&self) -> ValueResult<&[DateTime<Utc>]>

Available on crate feature 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.

Source

pub fn get_bigintegers(&self) -> ValueResult<&[BigInt]>

Available on crate feature 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.

Source

pub fn get_bigdecimals(&self) -> ValueResult<&[BigDecimal]>

Available on crate feature 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.

Source

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.

Source

pub fn get_urls(&self) -> ValueResult<&[Url]>

Available on crate feature 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.

Source

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.

Source

pub fn get_jsons(&self) -> ValueResult<&[JsonValue]>

Available on crate feature 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

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for MultiValues

Source§

fn fmt(&self, formatter: &mut Formatter<'_>) -> Result

Formats the borrowed semantic view without cloning stored elements.

§Parameters
  • formatter - Destination and formatting options.
§Returns

Ok(()) after the view is written.

§Errors

Propagates an error from the formatting destination.

Source§

impl Eq for MultiValues

Source§

impl<'a, 'b> From<&'a Vec<&'b str>> for MultiValues

Source§

fn from(values: &'a Vec<&'b str>) -> Self

Copies each string into an owned collection, preserving order. An empty vector creates a concrete empty collection.

§Parameters
  • values - Borrowed strings to copy in their original order.
§Returns

An owned string collection in input order, including when empty.

Source§

impl<'a, 'b, const N: usize> From<&'a [&'b str; N]> for MultiValues

Source§

fn from(values: &'a [&'b str; N]) -> Self

Copies each string into an owned collection, preserving order. An empty array creates a concrete empty collection.

§Parameters
  • values - Borrowed strings to copy in their original order.
§Returns

An owned string collection in input order, including when empty.

Source§

impl<'a, 'b> From<&'a [&'b str]> for MultiValues

Source§

fn from(values: &'a [&'b str]) -> Self

Copies each string into an owned collection, preserving order. An empty slice creates a concrete empty collection.

§Parameters
  • values - Borrowed strings to copy in their original order.
§Returns

An owned string collection in input order, including when empty.

Source§

impl From<&Vec<BigDecimal>> for MultiValues

Available on crate feature big-decimal only.
Source§

fn from(values: &Vec<BigDecimal>) -> Self

Clones the elements into an owned collection, preserving order. An empty vector creates a concrete empty collection.

§Parameters
  • values - Elements to collect in their original order.
§Returns

A typed collection containing the input elements in order, including when empty.

Source§

impl From<&Vec<BigInt>> for MultiValues

Available on crate feature big-integer only.
Source§

fn from(values: &Vec<BigInt>) -> Self

Clones the elements into an owned collection, preserving order. An empty vector creates a concrete empty collection.

§Parameters
  • values - Elements to collect in their original order.
§Returns

A typed collection containing the input elements in order, including when empty.

Source§

impl From<&Vec<DateTime<Utc>>> for MultiValues

Available on crate feature chrono only.
Source§

fn from(values: &Vec<DateTime<Utc>>) -> Self

Clones the elements into an owned collection, preserving order. An empty vector creates a concrete empty collection.

§Parameters
  • values - Elements to collect in their original order.
§Returns

A typed collection containing the input elements in order, including when empty.

Source§

impl From<&Vec<Duration>> for MultiValues

Source§

fn from(values: &Vec<Duration>) -> Self

Clones the elements into an owned collection, preserving order. An empty vector creates a concrete empty collection.

§Parameters
  • values - Elements to collect in their original order.
§Returns

A typed collection containing the input elements in order, including when empty.

Source§

impl From<&Vec<HashMap<String, String>>> for MultiValues

Source§

fn from(values: &Vec<HashMap<String, String>>) -> Self

Clones the elements into an owned collection, preserving order. An empty vector creates a concrete empty collection.

§Parameters
  • values - Elements to collect in their original order.
§Returns

A typed collection containing the input elements in order, including when empty.

Source§

impl From<&Vec<NaiveDate>> for MultiValues

Available on crate feature chrono only.
Source§

fn from(values: &Vec<NaiveDate>) -> Self

Clones the elements into an owned collection, preserving order. An empty vector creates a concrete empty collection.

§Parameters
  • values - Elements to collect in their original order.
§Returns

A typed collection containing the input elements in order, including when empty.

Source§

impl From<&Vec<NaiveDateTime>> for MultiValues

Available on crate feature chrono only.
Source§

fn from(values: &Vec<NaiveDateTime>) -> Self

Clones the elements into an owned collection, preserving order. An empty vector creates a concrete empty collection.

§Parameters
  • values - Elements to collect in their original order.
§Returns

A typed collection containing the input elements in order, including when empty.

Source§

impl From<&Vec<NaiveTime>> for MultiValues

Available on crate feature chrono only.
Source§

fn from(values: &Vec<NaiveTime>) -> Self

Clones the elements into an owned collection, preserving order. An empty vector creates a concrete empty collection.

§Parameters
  • values - Elements to collect in their original order.
§Returns

A typed collection containing the input elements in order, including when empty.

Source§

impl From<&Vec<String>> for MultiValues

Source§

fn from(values: &Vec<String>) -> Self

Clones the elements into an owned collection, preserving order. An empty vector creates a concrete empty collection.

§Parameters
  • values - Elements to collect in their original order.
§Returns

A typed collection containing the input elements in order, including when empty.

Source§

impl From<&Vec<Url>> for MultiValues

Available on crate feature url only.
Source§

fn from(values: &Vec<Url>) -> Self

Clones the elements into an owned collection, preserving order. An empty vector creates a concrete empty collection.

§Parameters
  • values - Elements to collect in their original order.
§Returns

A typed collection containing the input elements in order, including when empty.

Source§

impl From<&Vec<Value>> for MultiValues

Available on crate feature json only.
Source§

fn from(values: &Vec<Value>) -> Self

Clones the elements into an owned collection, preserving order. An empty vector creates a concrete empty collection.

§Parameters
  • values - Elements to collect in their original order.
§Returns

A typed collection containing the input elements in order, including when empty.

Source§

impl From<&Vec<bool>> for MultiValues

Source§

fn from(values: &Vec<bool>) -> Self

Clones the elements into an owned collection, preserving order. An empty vector creates a concrete empty collection.

§Parameters
  • values - Elements to collect in their original order.
§Returns

A typed collection containing the input elements in order, including when empty.

Source§

impl From<&Vec<char>> for MultiValues

Source§

fn from(values: &Vec<char>) -> Self

Clones the elements into an owned collection, preserving order. An empty vector creates a concrete empty collection.

§Parameters
  • values - Elements to collect in their original order.
§Returns

A typed collection containing the input elements in order, including when empty.

Source§

impl From<&Vec<f32>> for MultiValues

Source§

fn from(values: &Vec<f32>) -> Self

Clones the elements into an owned collection, preserving order. An empty vector creates a concrete empty collection.

§Parameters
  • values - Elements to collect in their original order.
§Returns

A typed collection containing the input elements in order, including when empty.

Source§

impl From<&Vec<f64>> for MultiValues

Source§

fn from(values: &Vec<f64>) -> Self

Clones the elements into an owned collection, preserving order. An empty vector creates a concrete empty collection.

§Parameters
  • values - Elements to collect in their original order.
§Returns

A typed collection containing the input elements in order, including when empty.

Source§

impl From<&Vec<i8>> for MultiValues

Source§

fn from(values: &Vec<i8>) -> Self

Clones the elements into an owned collection, preserving order. An empty vector creates a concrete empty collection.

§Parameters
  • values - Elements to collect in their original order.
§Returns

A typed collection containing the input elements in order, including when empty.

Source§

impl From<&Vec<i16>> for MultiValues

Source§

fn from(values: &Vec<i16>) -> Self

Clones the elements into an owned collection, preserving order. An empty vector creates a concrete empty collection.

§Parameters
  • values - Elements to collect in their original order.
§Returns

A typed collection containing the input elements in order, including when empty.

Source§

impl From<&Vec<i32>> for MultiValues

Source§

fn from(values: &Vec<i32>) -> Self

Clones the elements into an owned collection, preserving order. An empty vector creates a concrete empty collection.

§Parameters
  • values - Elements to collect in their original order.
§Returns

A typed collection containing the input elements in order, including when empty.

Source§

impl From<&Vec<i64>> for MultiValues

Source§

fn from(values: &Vec<i64>) -> Self

Clones the elements into an owned collection, preserving order. An empty vector creates a concrete empty collection.

§Parameters
  • values - Elements to collect in their original order.
§Returns

A typed collection containing the input elements in order, including when empty.

Source§

impl From<&Vec<i128>> for MultiValues

Source§

fn from(values: &Vec<i128>) -> Self

Clones the elements into an owned collection, preserving order. An empty vector creates a concrete empty collection.

§Parameters
  • values - Elements to collect in their original order.
§Returns

A typed collection containing the input elements in order, including when empty.

Source§

impl From<&Vec<u8>> for MultiValues

Source§

fn from(values: &Vec<u8>) -> Self

Clones the elements into an owned collection, preserving order. An empty vector creates a concrete empty collection.

§Parameters
  • values - Elements to collect in their original order.
§Returns

A typed collection containing the input elements in order, including when empty.

Source§

impl From<&Vec<u16>> for MultiValues

Source§

fn from(values: &Vec<u16>) -> Self

Clones the elements into an owned collection, preserving order. An empty vector creates a concrete empty collection.

§Parameters
  • values - Elements to collect in their original order.
§Returns

A typed collection containing the input elements in order, including when empty.

Source§

impl From<&Vec<u32>> for MultiValues

Source§

fn from(values: &Vec<u32>) -> Self

Clones the elements into an owned collection, preserving order. An empty vector creates a concrete empty collection.

§Parameters
  • values - Elements to collect in their original order.
§Returns

A typed collection containing the input elements in order, including when empty.

Source§

impl From<&Vec<u64>> for MultiValues

Source§

fn from(values: &Vec<u64>) -> Self

Clones the elements into an owned collection, preserving order. An empty vector creates a concrete empty collection.

§Parameters
  • values - Elements to collect in their original order.
§Returns

A typed collection containing the input elements in order, including when empty.

Source§

impl From<&Vec<u128>> for MultiValues

Source§

fn from(values: &Vec<u128>) -> Self

Clones the elements into an owned collection, preserving order. An empty vector creates a concrete empty collection.

§Parameters
  • values - Elements to collect in their original order.
§Returns

A typed collection containing the input elements in order, including when empty.

Source§

impl<const N: usize> From<&[BigDecimal; N]> for MultiValues

Available on crate feature big-decimal only.
Source§

fn from(values: &[BigDecimal; N]) -> Self

Clones the elements into an owned collection, preserving order. An empty array creates a concrete empty collection.

§Parameters
  • values - Elements to collect in their original order.
§Returns

A typed collection containing the input elements in order, including when empty.

Source§

impl From<&[BigDecimal]> for MultiValues

Available on crate feature big-decimal only.
Source§

fn from(values: &[BigDecimal]) -> Self

Clones the elements into an owned collection, preserving order. An empty slice creates a concrete empty collection.

§Parameters
  • values - Elements to collect in their original order.
§Returns

A typed collection containing the input elements in order, including when empty.

Source§

impl<const N: usize> From<&[BigInt; N]> for MultiValues

Available on crate feature big-integer only.
Source§

fn from(values: &[BigInt; N]) -> Self

Clones the elements into an owned collection, preserving order. An empty array creates a concrete empty collection.

§Parameters
  • values - Elements to collect in their original order.
§Returns

A typed collection containing the input elements in order, including when empty.

Source§

impl From<&[BigInt]> for MultiValues

Available on crate feature big-integer only.
Source§

fn from(values: &[BigInt]) -> Self

Clones the elements into an owned collection, preserving order. An empty slice creates a concrete empty collection.

§Parameters
  • values - Elements to collect in their original order.
§Returns

A typed collection containing the input elements in order, including when empty.

Source§

impl<const N: usize> From<&[DateTime<Utc>; N]> for MultiValues

Available on crate feature chrono only.
Source§

fn from(values: &[DateTime<Utc>; N]) -> Self

Clones the elements into an owned collection, preserving order. An empty array creates a concrete empty collection.

§Parameters
  • values - Elements to collect in their original order.
§Returns

A typed collection containing the input elements in order, including when empty.

Source§

impl From<&[DateTime<Utc>]> for MultiValues

Available on crate feature chrono only.
Source§

fn from(values: &[DateTime<Utc>]) -> Self

Clones the elements into an owned collection, preserving order. An empty slice creates a concrete empty collection.

§Parameters
  • values - Elements to collect in their original order.
§Returns

A typed collection containing the input elements in order, including when empty.

Source§

impl<const N: usize> From<&[Duration; N]> for MultiValues

Source§

fn from(values: &[Duration; N]) -> Self

Clones the elements into an owned collection, preserving order. An empty array creates a concrete empty collection.

§Parameters
  • values - Elements to collect in their original order.
§Returns

A typed collection containing the input elements in order, including when empty.

Source§

impl From<&[Duration]> for MultiValues

Source§

fn from(values: &[Duration]) -> Self

Clones the elements into an owned collection, preserving order. An empty slice creates a concrete empty collection.

§Parameters
  • values - Elements to collect in their original order.
§Returns

A typed collection containing the input elements in order, including when empty.

Source§

impl<const N: usize> From<&[HashMap<String, String>; N]> for MultiValues

Source§

fn from(values: &[HashMap<String, String>; N]) -> Self

Clones the elements into an owned collection, preserving order. An empty array creates a concrete empty collection.

§Parameters
  • values - Elements to collect in their original order.
§Returns

A typed collection containing the input elements in order, including when empty.

Source§

impl From<&[HashMap<String, String>]> for MultiValues

Source§

fn from(values: &[HashMap<String, String>]) -> Self

Clones the elements into an owned collection, preserving order. An empty slice creates a concrete empty collection.

§Parameters
  • values - Elements to collect in their original order.
§Returns

A typed collection containing the input elements in order, including when empty.

Source§

impl<const N: usize> From<&[NaiveDate; N]> for MultiValues

Available on crate feature chrono only.
Source§

fn from(values: &[NaiveDate; N]) -> Self

Clones the elements into an owned collection, preserving order. An empty array creates a concrete empty collection.

§Parameters
  • values - Elements to collect in their original order.
§Returns

A typed collection containing the input elements in order, including when empty.

Source§

impl<const N: usize> From<&[NaiveDateTime; N]> for MultiValues

Available on crate feature chrono only.
Source§

fn from(values: &[NaiveDateTime; N]) -> Self

Clones the elements into an owned collection, preserving order. An empty array creates a concrete empty collection.

§Parameters
  • values - Elements to collect in their original order.
§Returns

A typed collection containing the input elements in order, including when empty.

Source§

impl From<&[NaiveDateTime]> for MultiValues

Available on crate feature chrono only.
Source§

fn from(values: &[NaiveDateTime]) -> Self

Clones the elements into an owned collection, preserving order. An empty slice creates a concrete empty collection.

§Parameters
  • values - Elements to collect in their original order.
§Returns

A typed collection containing the input elements in order, including when empty.

Source§

impl From<&[NaiveDate]> for MultiValues

Available on crate feature chrono only.
Source§

fn from(values: &[NaiveDate]) -> Self

Clones the elements into an owned collection, preserving order. An empty slice creates a concrete empty collection.

§Parameters
  • values - Elements to collect in their original order.
§Returns

A typed collection containing the input elements in order, including when empty.

Source§

impl<const N: usize> From<&[NaiveTime; N]> for MultiValues

Available on crate feature chrono only.
Source§

fn from(values: &[NaiveTime; N]) -> Self

Clones the elements into an owned collection, preserving order. An empty array creates a concrete empty collection.

§Parameters
  • values - Elements to collect in their original order.
§Returns

A typed collection containing the input elements in order, including when empty.

Source§

impl From<&[NaiveTime]> for MultiValues

Available on crate feature chrono only.
Source§

fn from(values: &[NaiveTime]) -> Self

Clones the elements into an owned collection, preserving order. An empty slice creates a concrete empty collection.

§Parameters
  • values - Elements to collect in their original order.
§Returns

A typed collection containing the input elements in order, including when empty.

Source§

impl<const N: usize> From<&[String; N]> for MultiValues

Source§

fn from(values: &[String; N]) -> Self

Clones the elements into an owned collection, preserving order. An empty array creates a concrete empty collection.

§Parameters
  • values - Elements to collect in their original order.
§Returns

A typed collection containing the input elements in order, including when empty.

Source§

impl From<&[String]> for MultiValues

Source§

fn from(values: &[String]) -> Self

Clones the elements into an owned collection, preserving order. An empty slice creates a concrete empty collection.

§Parameters
  • values - Elements to collect in their original order.
§Returns

A typed collection containing the input elements in order, including when empty.

Source§

impl<const N: usize> From<&[Url; N]> for MultiValues

Available on crate feature url only.
Source§

fn from(values: &[Url; N]) -> Self

Clones the elements into an owned collection, preserving order. An empty array creates a concrete empty collection.

§Parameters
  • values - Elements to collect in their original order.
§Returns

A typed collection containing the input elements in order, including when empty.

Source§

impl From<&[Url]> for MultiValues

Available on crate feature url only.
Source§

fn from(values: &[Url]) -> Self

Clones the elements into an owned collection, preserving order. An empty slice creates a concrete empty collection.

§Parameters
  • values - Elements to collect in their original order.
§Returns

A typed collection containing the input elements in order, including when empty.

Source§

impl<const N: usize> From<&[Value; N]> for MultiValues

Available on crate feature json only.
Source§

fn from(values: &[Value; N]) -> Self

Clones the elements into an owned collection, preserving order. An empty array creates a concrete empty collection.

§Parameters
  • values - Elements to collect in their original order.
§Returns

A typed collection containing the input elements in order, including when empty.

Source§

impl From<&[Value]> for MultiValues

Available on crate feature json only.
Source§

fn from(values: &[Value]) -> Self

Clones the elements into an owned collection, preserving order. An empty slice creates a concrete empty collection.

§Parameters
  • values - Elements to collect in their original order.
§Returns

A typed collection containing the input elements in order, including when empty.

Source§

impl<const N: usize> From<&[bool; N]> for MultiValues

Source§

fn from(values: &[bool; N]) -> Self

Clones the elements into an owned collection, preserving order. An empty array creates a concrete empty collection.

§Parameters
  • values - Elements to collect in their original order.
§Returns

A typed collection containing the input elements in order, including when empty.

Source§

impl From<&[bool]> for MultiValues

Source§

fn from(values: &[bool]) -> Self

Clones the elements into an owned collection, preserving order. An empty slice creates a concrete empty collection.

§Parameters
  • values - Elements to collect in their original order.
§Returns

A typed collection containing the input elements in order, including when empty.

Source§

impl<const N: usize> From<&[char; N]> for MultiValues

Source§

fn from(values: &[char; N]) -> Self

Clones the elements into an owned collection, preserving order. An empty array creates a concrete empty collection.

§Parameters
  • values - Elements to collect in their original order.
§Returns

A typed collection containing the input elements in order, including when empty.

Source§

impl From<&[char]> for MultiValues

Source§

fn from(values: &[char]) -> Self

Clones the elements into an owned collection, preserving order. An empty slice creates a concrete empty collection.

§Parameters
  • values - Elements to collect in their original order.
§Returns

A typed collection containing the input elements in order, including when empty.

Source§

impl<const N: usize> From<&[f32; N]> for MultiValues

Source§

fn from(values: &[f32; N]) -> Self

Clones the elements into an owned collection, preserving order. An empty array creates a concrete empty collection.

§Parameters
  • values - Elements to collect in their original order.
§Returns

A typed collection containing the input elements in order, including when empty.

Source§

impl From<&[f32]> for MultiValues

Source§

fn from(values: &[f32]) -> Self

Clones the elements into an owned collection, preserving order. An empty slice creates a concrete empty collection.

§Parameters
  • values - Elements to collect in their original order.
§Returns

A typed collection containing the input elements in order, including when empty.

Source§

impl<const N: usize> From<&[f64; N]> for MultiValues

Source§

fn from(values: &[f64; N]) -> Self

Clones the elements into an owned collection, preserving order. An empty array creates a concrete empty collection.

§Parameters
  • values - Elements to collect in their original order.
§Returns

A typed collection containing the input elements in order, including when empty.

Source§

impl From<&[f64]> for MultiValues

Source§

fn from(values: &[f64]) -> Self

Clones the elements into an owned collection, preserving order. An empty slice creates a concrete empty collection.

§Parameters
  • values - Elements to collect in their original order.
§Returns

A typed collection containing the input elements in order, including when empty.

Source§

impl<const N: usize> From<&[i8; N]> for MultiValues

Source§

fn from(values: &[i8; N]) -> Self

Clones the elements into an owned collection, preserving order. An empty array creates a concrete empty collection.

§Parameters
  • values - Elements to collect in their original order.
§Returns

A typed collection containing the input elements in order, including when empty.

Source§

impl From<&[i8]> for MultiValues

Source§

fn from(values: &[i8]) -> Self

Clones the elements into an owned collection, preserving order. An empty slice creates a concrete empty collection.

§Parameters
  • values - Elements to collect in their original order.
§Returns

A typed collection containing the input elements in order, including when empty.

Source§

impl<const N: usize> From<&[i16; N]> for MultiValues

Source§

fn from(values: &[i16; N]) -> Self

Clones the elements into an owned collection, preserving order. An empty array creates a concrete empty collection.

§Parameters
  • values - Elements to collect in their original order.
§Returns

A typed collection containing the input elements in order, including when empty.

Source§

impl From<&[i16]> for MultiValues

Source§

fn from(values: &[i16]) -> Self

Clones the elements into an owned collection, preserving order. An empty slice creates a concrete empty collection.

§Parameters
  • values - Elements to collect in their original order.
§Returns

A typed collection containing the input elements in order, including when empty.

Source§

impl<const N: usize> From<&[i32; N]> for MultiValues

Source§

fn from(values: &[i32; N]) -> Self

Clones the elements into an owned collection, preserving order. An empty array creates a concrete empty collection.

§Parameters
  • values - Elements to collect in their original order.
§Returns

A typed collection containing the input elements in order, including when empty.

Source§

impl From<&[i32]> for MultiValues

Source§

fn from(values: &[i32]) -> Self

Clones the elements into an owned collection, preserving order. An empty slice creates a concrete empty collection.

§Parameters
  • values - Elements to collect in their original order.
§Returns

A typed collection containing the input elements in order, including when empty.

Source§

impl<const N: usize> From<&[i64; N]> for MultiValues

Source§

fn from(values: &[i64; N]) -> Self

Clones the elements into an owned collection, preserving order. An empty array creates a concrete empty collection.

§Parameters
  • values - Elements to collect in their original order.
§Returns

A typed collection containing the input elements in order, including when empty.

Source§

impl From<&[i64]> for MultiValues

Source§

fn from(values: &[i64]) -> Self

Clones the elements into an owned collection, preserving order. An empty slice creates a concrete empty collection.

§Parameters
  • values - Elements to collect in their original order.
§Returns

A typed collection containing the input elements in order, including when empty.

Source§

impl<const N: usize> From<&[i128; N]> for MultiValues

Source§

fn from(values: &[i128; N]) -> Self

Clones the elements into an owned collection, preserving order. An empty array creates a concrete empty collection.

§Parameters
  • values - Elements to collect in their original order.
§Returns

A typed collection containing the input elements in order, including when empty.

Source§

impl From<&[i128]> for MultiValues

Source§

fn from(values: &[i128]) -> Self

Clones the elements into an owned collection, preserving order. An empty slice creates a concrete empty collection.

§Parameters
  • values - Elements to collect in their original order.
§Returns

A typed collection containing the input elements in order, including when empty.

Source§

impl<const N: usize> From<&[u8; N]> for MultiValues

Source§

fn from(values: &[u8; N]) -> Self

Clones the elements into an owned collection, preserving order. An empty array creates a concrete empty collection.

§Parameters
  • values - Elements to collect in their original order.
§Returns

A typed collection containing the input elements in order, including when empty.

Source§

impl From<&[u8]> for MultiValues

Source§

fn from(values: &[u8]) -> Self

Clones the elements into an owned collection, preserving order. An empty slice creates a concrete empty collection.

§Parameters
  • values - Elements to collect in their original order.
§Returns

A typed collection containing the input elements in order, including when empty.

Source§

impl<const N: usize> From<&[u16; N]> for MultiValues

Source§

fn from(values: &[u16; N]) -> Self

Clones the elements into an owned collection, preserving order. An empty array creates a concrete empty collection.

§Parameters
  • values - Elements to collect in their original order.
§Returns

A typed collection containing the input elements in order, including when empty.

Source§

impl From<&[u16]> for MultiValues

Source§

fn from(values: &[u16]) -> Self

Clones the elements into an owned collection, preserving order. An empty slice creates a concrete empty collection.

§Parameters
  • values - Elements to collect in their original order.
§Returns

A typed collection containing the input elements in order, including when empty.

Source§

impl<const N: usize> From<&[u32; N]> for MultiValues

Source§

fn from(values: &[u32; N]) -> Self

Clones the elements into an owned collection, preserving order. An empty array creates a concrete empty collection.

§Parameters
  • values - Elements to collect in their original order.
§Returns

A typed collection containing the input elements in order, including when empty.

Source§

impl From<&[u32]> for MultiValues

Source§

fn from(values: &[u32]) -> Self

Clones the elements into an owned collection, preserving order. An empty slice creates a concrete empty collection.

§Parameters
  • values - Elements to collect in their original order.
§Returns

A typed collection containing the input elements in order, including when empty.

Source§

impl<const N: usize> From<&[u64; N]> for MultiValues

Source§

fn from(values: &[u64; N]) -> Self

Clones the elements into an owned collection, preserving order. An empty array creates a concrete empty collection.

§Parameters
  • values - Elements to collect in their original order.
§Returns

A typed collection containing the input elements in order, including when empty.

Source§

impl From<&[u64]> for MultiValues

Source§

fn from(values: &[u64]) -> Self

Clones the elements into an owned collection, preserving order. An empty slice creates a concrete empty collection.

§Parameters
  • values - Elements to collect in their original order.
§Returns

A typed collection containing the input elements in order, including when empty.

Source§

impl<const N: usize> From<&[u128; N]> for MultiValues

Source§

fn from(values: &[u128; N]) -> Self

Clones the elements into an owned collection, preserving order. An empty array creates a concrete empty collection.

§Parameters
  • values - Elements to collect in their original order.
§Returns

A typed collection containing the input elements in order, including when empty.

Source§

impl From<&[u128]> for MultiValues

Source§

fn from(values: &[u128]) -> Self

Clones the elements into an owned collection, preserving order. An empty slice creates a concrete empty collection.

§Parameters
  • values - Elements to collect in their original order.
§Returns

A typed collection containing the input elements in order, including when empty.

Source§

impl From<&str> for MultiValues

Source§

fn from(value: &str) -> Self

Copies the text into a one-item owned string collection.

§Parameters
  • value - Borrowed text to copy into owned storage.
§Returns

A one-item string collection owning a copy of the text.

Source§

impl From<BigDecimal> for MultiValues

Available on crate feature big-decimal only.
Source§

fn from(value: BigDecimal) -> Self

Creates a one-item collection by taking ownership of value.

§Parameters
  • value - Element moved into the collection.
§Returns

A one-item collection of the corresponding element type.

Source§

impl From<BigInt> for MultiValues

Available on crate feature big-integer only.
Source§

fn from(value: BigInt) -> Self

Creates a one-item collection by taking ownership of value.

§Parameters
  • value - Element moved into the collection.
§Returns

A one-item collection of the corresponding element type.

Source§

impl From<DateTime<Utc>> for MultiValues

Available on crate feature chrono only.
Source§

fn from(value: DateTime<Utc>) -> Self

Creates a one-item collection by taking ownership of value.

§Parameters
  • value - Element moved into the collection.
§Returns

A one-item collection of the corresponding element type.

Source§

impl From<Duration> for MultiValues

Source§

fn from(value: Duration) -> Self

Creates a one-item collection by taking ownership of value.

§Parameters
  • value - Element moved into the collection.
§Returns

A one-item collection of the corresponding element type.

Source§

impl From<HashMap<String, String>> for MultiValues

Source§

fn from(value: HashMap<String, String>) -> Self

Creates a one-item collection by taking ownership of value.

§Parameters
  • value - Element moved into the collection.
§Returns

A one-item collection of the corresponding element type.

Source§

impl From<MultiValues> for ValueContainer

Source§

fn from(values: MultiValues) -> Self

Wraps the collection without cloning its elements.

§Parameters
  • values - Input converted with the ownership behavior described above.
§Returns

A container preserving the input data type and scalar or collection shape.

Source§

impl From<NaiveDate> for MultiValues

Available on crate feature chrono only.
Source§

fn from(value: NaiveDate) -> Self

Creates a one-item collection by taking ownership of value.

§Parameters
  • value - Element moved into the collection.
§Returns

A one-item collection of the corresponding element type.

Source§

impl From<NaiveDateTime> for MultiValues

Available on crate feature chrono only.
Source§

fn from(value: NaiveDateTime) -> Self

Creates a one-item collection by taking ownership of value.

§Parameters
  • value - Element moved into the collection.
§Returns

A one-item collection of the corresponding element type.

Source§

impl From<NaiveTime> for MultiValues

Available on crate feature chrono only.
Source§

fn from(value: NaiveTime) -> Self

Creates a one-item collection by taking ownership of value.

§Parameters
  • value - Element moved into the collection.
§Returns

A one-item collection of the corresponding element type.

Source§

impl From<String> for MultiValues

Source§

fn from(value: String) -> Self

Creates a one-item collection by taking ownership of value.

§Parameters
  • value - Element moved into the collection.
§Returns

A one-item collection of the corresponding element type.

Source§

impl From<Url> for MultiValues

Available on crate feature url only.
Source§

fn from(value: Url) -> Self

Creates a one-item collection by taking ownership of value.

§Parameters
  • value - Element moved into the collection.
§Returns

A one-item collection of the corresponding element type.

Source§

impl From<Value> for MultiValues

Source§

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.
Source§

fn from(value: Value) -> Self

Creates a one-item collection by taking ownership of value.

§Parameters
  • value - Element moved into the collection.
§Returns

A one-item collection of the corresponding element type.

Source§

impl<'a> From<Vec<&'a str>> for MultiValues

Source§

fn from(values: Vec<&'a str>) -> Self

Copies each string into an owned collection, preserving order. An empty vector creates a concrete empty collection.

§Parameters
  • values - Borrowed strings to copy in their original order.
§Returns

An owned string collection in input order, including when empty.

Source§

impl From<Vec<BigDecimal>> for MultiValues

Available on crate feature big-decimal only.
Source§

fn from(values: Vec<BigDecimal>) -> Self

Takes ownership of the vector and its element storage without cloning elements. An empty vector creates a concrete empty collection.

§Parameters
  • values - Vector whose storage is moved into the collection.
§Returns

A typed collection retaining the input vector and element order.

Source§

impl From<Vec<BigInt>> for MultiValues

Available on crate feature big-integer only.
Source§

fn from(values: Vec<BigInt>) -> Self

Takes ownership of the vector and its element storage without cloning elements. An empty vector creates a concrete empty collection.

§Parameters
  • values - Vector whose storage is moved into the collection.
§Returns

A typed collection retaining the input vector and element order.

Source§

impl From<Vec<DateTime<Utc>>> for MultiValues

Available on crate feature chrono only.
Source§

fn from(values: Vec<DateTime<Utc>>) -> Self

Takes ownership of the vector and its element storage without cloning elements. An empty vector creates a concrete empty collection.

§Parameters
  • values - Vector whose storage is moved into the collection.
§Returns

A typed collection retaining the input vector and element order.

Source§

impl From<Vec<Duration>> for MultiValues

Source§

fn from(values: Vec<Duration>) -> Self

Takes ownership of the vector and its element storage without cloning elements. An empty vector creates a concrete empty collection.

§Parameters
  • values - Vector whose storage is moved into the collection.
§Returns

A typed collection retaining the input vector and element order.

Source§

impl From<Vec<HashMap<String, String>>> for MultiValues

Source§

fn from(values: Vec<HashMap<String, String>>) -> Self

Takes ownership of the vector and its element storage without cloning elements. An empty vector creates a concrete empty collection.

§Parameters
  • values - Vector whose storage is moved into the collection.
§Returns

A typed collection retaining the input vector and element order.

Source§

impl From<Vec<NaiveDate>> for MultiValues

Available on crate feature chrono only.
Source§

fn from(values: Vec<NaiveDate>) -> Self

Takes ownership of the vector and its element storage without cloning elements. An empty vector creates a concrete empty collection.

§Parameters
  • values - Vector whose storage is moved into the collection.
§Returns

A typed collection retaining the input vector and element order.

Source§

impl From<Vec<NaiveDateTime>> for MultiValues

Available on crate feature chrono only.
Source§

fn from(values: Vec<NaiveDateTime>) -> Self

Takes ownership of the vector and its element storage without cloning elements. An empty vector creates a concrete empty collection.

§Parameters
  • values - Vector whose storage is moved into the collection.
§Returns

A typed collection retaining the input vector and element order.

Source§

impl From<Vec<NaiveTime>> for MultiValues

Available on crate feature chrono only.
Source§

fn from(values: Vec<NaiveTime>) -> Self

Takes ownership of the vector and its element storage without cloning elements. An empty vector creates a concrete empty collection.

§Parameters
  • values - Vector whose storage is moved into the collection.
§Returns

A typed collection retaining the input vector and element order.

Source§

impl From<Vec<String>> for MultiValues

Source§

fn from(values: Vec<String>) -> Self

Takes ownership of the vector and its element storage without cloning elements. An empty vector creates a concrete empty collection.

§Parameters
  • values - Vector whose storage is moved into the collection.
§Returns

A typed collection retaining the input vector and element order.

Source§

impl From<Vec<Url>> for MultiValues

Available on crate feature url only.
Source§

fn from(values: Vec<Url>) -> Self

Takes ownership of the vector and its element storage without cloning elements. An empty vector creates a concrete empty collection.

§Parameters
  • values - Vector whose storage is moved into the collection.
§Returns

A typed collection retaining the input vector and element order.

Source§

impl From<Vec<Value>> for MultiValues

Available on crate feature json only.
Source§

fn from(values: Vec<Value>) -> Self

Takes ownership of the vector and its element storage without cloning elements. An empty vector creates a concrete empty collection.

§Parameters
  • values - Vector whose storage is moved into the collection.
§Returns

A typed collection retaining the input vector and element order.

Source§

impl From<Vec<bool>> for MultiValues

Source§

fn from(values: Vec<bool>) -> Self

Takes ownership of the vector and its element storage without cloning elements. An empty vector creates a concrete empty collection.

§Parameters
  • values - Vector whose storage is moved into the collection.
§Returns

A typed collection retaining the input vector and element order.

Source§

impl From<Vec<char>> for MultiValues

Source§

fn from(values: Vec<char>) -> Self

Takes ownership of the vector and its element storage without cloning elements. An empty vector creates a concrete empty collection.

§Parameters
  • values - Vector whose storage is moved into the collection.
§Returns

A typed collection retaining the input vector and element order.

Source§

impl From<Vec<f32>> for MultiValues

Source§

fn from(values: Vec<f32>) -> Self

Takes ownership of the vector and its element storage without cloning elements. An empty vector creates a concrete empty collection.

§Parameters
  • values - Vector whose storage is moved into the collection.
§Returns

A typed collection retaining the input vector and element order.

Source§

impl From<Vec<f64>> for MultiValues

Source§

fn from(values: Vec<f64>) -> Self

Takes ownership of the vector and its element storage without cloning elements. An empty vector creates a concrete empty collection.

§Parameters
  • values - Vector whose storage is moved into the collection.
§Returns

A typed collection retaining the input vector and element order.

Source§

impl From<Vec<i8>> for MultiValues

Source§

fn from(values: Vec<i8>) -> Self

Takes ownership of the vector and its element storage without cloning elements. An empty vector creates a concrete empty collection.

§Parameters
  • values - Vector whose storage is moved into the collection.
§Returns

A typed collection retaining the input vector and element order.

Source§

impl From<Vec<i16>> for MultiValues

Source§

fn from(values: Vec<i16>) -> Self

Takes ownership of the vector and its element storage without cloning elements. An empty vector creates a concrete empty collection.

§Parameters
  • values - Vector whose storage is moved into the collection.
§Returns

A typed collection retaining the input vector and element order.

Source§

impl From<Vec<i32>> for MultiValues

Source§

fn from(values: Vec<i32>) -> Self

Takes ownership of the vector and its element storage without cloning elements. An empty vector creates a concrete empty collection.

§Parameters
  • values - Vector whose storage is moved into the collection.
§Returns

A typed collection retaining the input vector and element order.

Source§

impl From<Vec<i64>> for MultiValues

Source§

fn from(values: Vec<i64>) -> Self

Takes ownership of the vector and its element storage without cloning elements. An empty vector creates a concrete empty collection.

§Parameters
  • values - Vector whose storage is moved into the collection.
§Returns

A typed collection retaining the input vector and element order.

Source§

impl From<Vec<i128>> for MultiValues

Source§

fn from(values: Vec<i128>) -> Self

Takes ownership of the vector and its element storage without cloning elements. An empty vector creates a concrete empty collection.

§Parameters
  • values - Vector whose storage is moved into the collection.
§Returns

A typed collection retaining the input vector and element order.

Source§

impl From<Vec<u8>> for MultiValues

Source§

fn from(values: Vec<u8>) -> Self

Takes ownership of the vector and its element storage without cloning elements. An empty vector creates a concrete empty collection.

§Parameters
  • values - Vector whose storage is moved into the collection.
§Returns

A typed collection retaining the input vector and element order.

Source§

impl From<Vec<u16>> for MultiValues

Source§

fn from(values: Vec<u16>) -> Self

Takes ownership of the vector and its element storage without cloning elements. An empty vector creates a concrete empty collection.

§Parameters
  • values - Vector whose storage is moved into the collection.
§Returns

A typed collection retaining the input vector and element order.

Source§

impl From<Vec<u32>> for MultiValues

Source§

fn from(values: Vec<u32>) -> Self

Takes ownership of the vector and its element storage without cloning elements. An empty vector creates a concrete empty collection.

§Parameters
  • values - Vector whose storage is moved into the collection.
§Returns

A typed collection retaining the input vector and element order.

Source§

impl From<Vec<u64>> for MultiValues

Source§

fn from(values: Vec<u64>) -> Self

Takes ownership of the vector and its element storage without cloning elements. An empty vector creates a concrete empty collection.

§Parameters
  • values - Vector whose storage is moved into the collection.
§Returns

A typed collection retaining the input vector and element order.

Source§

impl From<Vec<u128>> for MultiValues

Source§

fn from(values: Vec<u128>) -> Self

Takes ownership of the vector and its element storage without cloning elements. An empty vector creates a concrete empty collection.

§Parameters
  • values - Vector whose storage is moved into the collection.
§Returns

A typed collection retaining the input vector and element order.

Source§

impl<'a, const N: usize> From<[&'a str; N]> for MultiValues

Source§

fn from(values: [&'a str; N]) -> Self

Copies each string into an owned collection, preserving order. An empty array creates a concrete empty collection.

§Parameters
  • values - Borrowed strings to copy in their original order.
§Returns

An owned string collection in input order, including when empty.

Source§

impl<const N: usize> From<[BigDecimal; N]> for MultiValues

Available on crate feature big-decimal only.
Source§

fn from(values: [BigDecimal; N]) -> Self

Moves the array elements into a newly allocated vector, preserving order. An empty array creates a concrete empty collection.

§Parameters
  • values - Elements to collect in their original order.
§Returns

A typed collection containing the input elements in order, including when empty.

Source§

impl<const N: usize> From<[BigInt; N]> for MultiValues

Available on crate feature big-integer only.
Source§

fn from(values: [BigInt; N]) -> Self

Moves the array elements into a newly allocated vector, preserving order. An empty array creates a concrete empty collection.

§Parameters
  • values - Elements to collect in their original order.
§Returns

A typed collection containing the input elements in order, including when empty.

Source§

impl<const N: usize> From<[DateTime<Utc>; N]> for MultiValues

Available on crate feature chrono only.
Source§

fn from(values: [DateTime<Utc>; N]) -> Self

Moves the array elements into a newly allocated vector, preserving order. An empty array creates a concrete empty collection.

§Parameters
  • values - Elements to collect in their original order.
§Returns

A typed collection containing the input elements in order, including when empty.

Source§

impl<const N: usize> From<[Duration; N]> for MultiValues

Source§

fn from(values: [Duration; N]) -> Self

Moves the array elements into a newly allocated vector, preserving order. An empty array creates a concrete empty collection.

§Parameters
  • values - Elements to collect in their original order.
§Returns

A typed collection containing the input elements in order, including when empty.

Source§

impl<const N: usize> From<[HashMap<String, String>; N]> for MultiValues

Source§

fn from(values: [HashMap<String, String>; N]) -> Self

Moves the array elements into a newly allocated vector, preserving order. An empty array creates a concrete empty collection.

§Parameters
  • values - Elements to collect in their original order.
§Returns

A typed collection containing the input elements in order, including when empty.

Source§

impl<const N: usize> From<[NaiveDate; N]> for MultiValues

Available on crate feature chrono only.
Source§

fn from(values: [NaiveDate; N]) -> Self

Moves the array elements into a newly allocated vector, preserving order. An empty array creates a concrete empty collection.

§Parameters
  • values - Elements to collect in their original order.
§Returns

A typed collection containing the input elements in order, including when empty.

Source§

impl<const N: usize> From<[NaiveDateTime; N]> for MultiValues

Available on crate feature chrono only.
Source§

fn from(values: [NaiveDateTime; N]) -> Self

Moves the array elements into a newly allocated vector, preserving order. An empty array creates a concrete empty collection.

§Parameters
  • values - Elements to collect in their original order.
§Returns

A typed collection containing the input elements in order, including when empty.

Source§

impl<const N: usize> From<[NaiveTime; N]> for MultiValues

Available on crate feature chrono only.
Source§

fn from(values: [NaiveTime; N]) -> Self

Moves the array elements into a newly allocated vector, preserving order. An empty array creates a concrete empty collection.

§Parameters
  • values - Elements to collect in their original order.
§Returns

A typed collection containing the input elements in order, including when empty.

Source§

impl<const N: usize> From<[String; N]> for MultiValues

Source§

fn from(values: [String; N]) -> Self

Moves the array elements into a newly allocated vector, preserving order. An empty array creates a concrete empty collection.

§Parameters
  • values - Elements to collect in their original order.
§Returns

A typed collection containing the input elements in order, including when empty.

Source§

impl<const N: usize> From<[Url; N]> for MultiValues

Available on crate feature url only.
Source§

fn from(values: [Url; N]) -> Self

Moves the array elements into a newly allocated vector, preserving order. An empty array creates a concrete empty collection.

§Parameters
  • values - Elements to collect in their original order.
§Returns

A typed collection containing the input elements in order, including when empty.

Source§

impl<const N: usize> From<[Value; N]> for MultiValues

Available on crate feature json only.
Source§

fn from(values: [Value; N]) -> Self

Moves the array elements into a newly allocated vector, preserving order. An empty array creates a concrete empty collection.

§Parameters
  • values - Elements to collect in their original order.
§Returns

A typed collection containing the input elements in order, including when empty.

Source§

impl<const N: usize> From<[bool; N]> for MultiValues

Source§

fn from(values: [bool; N]) -> Self

Moves the array elements into a newly allocated vector, preserving order. An empty array creates a concrete empty collection.

§Parameters
  • values - Elements to collect in their original order.
§Returns

A typed collection containing the input elements in order, including when empty.

Source§

impl<const N: usize> From<[char; N]> for MultiValues

Source§

fn from(values: [char; N]) -> Self

Moves the array elements into a newly allocated vector, preserving order. An empty array creates a concrete empty collection.

§Parameters
  • values - Elements to collect in their original order.
§Returns

A typed collection containing the input elements in order, including when empty.

Source§

impl<const N: usize> From<[f32; N]> for MultiValues

Source§

fn from(values: [f32; N]) -> Self

Moves the array elements into a newly allocated vector, preserving order. An empty array creates a concrete empty collection.

§Parameters
  • values - Elements to collect in their original order.
§Returns

A typed collection containing the input elements in order, including when empty.

Source§

impl<const N: usize> From<[f64; N]> for MultiValues

Source§

fn from(values: [f64; N]) -> Self

Moves the array elements into a newly allocated vector, preserving order. An empty array creates a concrete empty collection.

§Parameters
  • values - Elements to collect in their original order.
§Returns

A typed collection containing the input elements in order, including when empty.

Source§

impl<const N: usize> From<[i8; N]> for MultiValues

Source§

fn from(values: [i8; N]) -> Self

Moves the array elements into a newly allocated vector, preserving order. An empty array creates a concrete empty collection.

§Parameters
  • values - Elements to collect in their original order.
§Returns

A typed collection containing the input elements in order, including when empty.

Source§

impl<const N: usize> From<[i16; N]> for MultiValues

Source§

fn from(values: [i16; N]) -> Self

Moves the array elements into a newly allocated vector, preserving order. An empty array creates a concrete empty collection.

§Parameters
  • values - Elements to collect in their original order.
§Returns

A typed collection containing the input elements in order, including when empty.

Source§

impl<const N: usize> From<[i32; N]> for MultiValues

Source§

fn from(values: [i32; N]) -> Self

Moves the array elements into a newly allocated vector, preserving order. An empty array creates a concrete empty collection.

§Parameters
  • values - Elements to collect in their original order.
§Returns

A typed collection containing the input elements in order, including when empty.

Source§

impl<const N: usize> From<[i64; N]> for MultiValues

Source§

fn from(values: [i64; N]) -> Self

Moves the array elements into a newly allocated vector, preserving order. An empty array creates a concrete empty collection.

§Parameters
  • values - Elements to collect in their original order.
§Returns

A typed collection containing the input elements in order, including when empty.

Source§

impl<const N: usize> From<[i128; N]> for MultiValues

Source§

fn from(values: [i128; N]) -> Self

Moves the array elements into a newly allocated vector, preserving order. An empty array creates a concrete empty collection.

§Parameters
  • values - Elements to collect in their original order.
§Returns

A typed collection containing the input elements in order, including when empty.

Source§

impl<const N: usize> From<[u8; N]> for MultiValues

Source§

fn from(values: [u8; N]) -> Self

Moves the array elements into a newly allocated vector, preserving order. An empty array creates a concrete empty collection.

§Parameters
  • values - Elements to collect in their original order.
§Returns

A typed collection containing the input elements in order, including when empty.

Source§

impl<const N: usize> From<[u16; N]> for MultiValues

Source§

fn from(values: [u16; N]) -> Self

Moves the array elements into a newly allocated vector, preserving order. An empty array creates a concrete empty collection.

§Parameters
  • values - Elements to collect in their original order.
§Returns

A typed collection containing the input elements in order, including when empty.

Source§

impl<const N: usize> From<[u32; N]> for MultiValues

Source§

fn from(values: [u32; N]) -> Self

Moves the array elements into a newly allocated vector, preserving order. An empty array creates a concrete empty collection.

§Parameters
  • values - Elements to collect in their original order.
§Returns

A typed collection containing the input elements in order, including when empty.

Source§

impl<const N: usize> From<[u64; N]> for MultiValues

Source§

fn from(values: [u64; N]) -> Self

Moves the array elements into a newly allocated vector, preserving order. An empty array creates a concrete empty collection.

§Parameters
  • values - Elements to collect in their original order.
§Returns

A typed collection containing the input elements in order, including when empty.

Source§

impl<const N: usize> From<[u128; N]> for MultiValues

Source§

fn from(values: [u128; N]) -> Self

Moves the array elements into a newly allocated vector, preserving order. An empty array creates a concrete empty collection.

§Parameters
  • values - Elements to collect in their original order.
§Returns

A typed collection containing the input elements in order, including when empty.

Source§

impl From<bool> for MultiValues

Source§

fn from(value: bool) -> Self

Creates a one-item collection by taking ownership of value.

§Parameters
  • value - Element moved into the collection.
§Returns

A one-item collection of the corresponding element type.

Source§

impl From<char> for MultiValues

Source§

fn from(value: char) -> Self

Creates a one-item collection by taking ownership of value.

§Parameters
  • value - Element moved into the collection.
§Returns

A one-item collection of the corresponding element type.

Source§

impl From<f32> for MultiValues

Source§

fn from(value: f32) -> Self

Creates a one-item collection by taking ownership of value.

§Parameters
  • value - Element moved into the collection.
§Returns

A one-item collection of the corresponding element type.

Source§

impl From<f64> for MultiValues

Source§

fn from(value: f64) -> Self

Creates a one-item collection by taking ownership of value.

§Parameters
  • value - Element moved into the collection.
§Returns

A one-item collection of the corresponding element type.

Source§

impl From<i8> for MultiValues

Source§

fn from(value: i8) -> Self

Creates a one-item collection by taking ownership of value.

§Parameters
  • value - Element moved into the collection.
§Returns

A one-item collection of the corresponding element type.

Source§

impl From<i16> for MultiValues

Source§

fn from(value: i16) -> Self

Creates a one-item collection by taking ownership of value.

§Parameters
  • value - Element moved into the collection.
§Returns

A one-item collection of the corresponding element type.

Source§

impl From<i32> for MultiValues

Source§

fn from(value: i32) -> Self

Creates a one-item collection by taking ownership of value.

§Parameters
  • value - Element moved into the collection.
§Returns

A one-item collection of the corresponding element type.

Source§

impl From<i64> for MultiValues

Source§

fn from(value: i64) -> Self

Creates a one-item collection by taking ownership of value.

§Parameters
  • value - Element moved into the collection.
§Returns

A one-item collection of the corresponding element type.

Source§

impl From<i128> for MultiValues

Source§

fn from(value: i128) -> Self

Creates a one-item collection by taking ownership of value.

§Parameters
  • value - Element moved into the collection.
§Returns

A one-item collection of the corresponding element type.

Source§

impl From<u8> for MultiValues

Source§

fn from(value: u8) -> Self

Creates a one-item collection by taking ownership of value.

§Parameters
  • value - Element moved into the collection.
§Returns

A one-item collection of the corresponding element type.

Source§

impl From<u16> for MultiValues

Source§

fn from(value: u16) -> Self

Creates a one-item collection by taking ownership of value.

§Parameters
  • value - Element moved into the collection.
§Returns

A one-item collection of the corresponding element type.

Source§

impl From<u32> for MultiValues

Source§

fn from(value: u32) -> Self

Creates a one-item collection by taking ownership of value.

§Parameters
  • value - Element moved into the collection.
§Returns

A one-item collection of the corresponding element type.

Source§

impl From<u64> for MultiValues

Source§

fn from(value: u64) -> Self

Creates a one-item collection by taking ownership of value.

§Parameters
  • value - Element moved into the collection.
§Returns

A one-item collection of the corresponding element type.

Source§

impl From<u128> for MultiValues

Source§

fn from(value: u128) -> Self

Creates a one-item collection by taking ownership of value.

§Parameters
  • value - Element moved into the collection.
§Returns

A one-item collection of the corresponding element type.

Source§

impl Hash for MultiValues

Source§

fn hash<H: Hasher>(&self, state: &mut H)

Writes the variant tag and ordered semantic payload identity.

§Type Parameters
  • H - Hasher receiving the collection identity.
§Parameters
  • state - Hasher updated with the variant and payload identity.
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for MultiValues

Source§

fn eq(&self, other: &Self) -> bool

Compares variants and ordered payloads using semantic identity.

§Parameters
  • other - Collection to compare with this borrowed collection.
§Returns

Whether both collections have the same variant and equal payloads.

1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Redact for MultiValues

Available on crate feature redact only.
Source§

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

Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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]

Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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

Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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]

Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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

Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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]

Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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

Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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]

Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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

Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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]

Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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

Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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]

Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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

Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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]

Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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

Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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]

Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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

Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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]

Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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

Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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]

Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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

Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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]

Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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

Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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]

Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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

Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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]

Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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

Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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]

Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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.
Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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.
Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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.
Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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.
Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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

Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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]

Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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.
Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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.
Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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.
Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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.
Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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.
Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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.
Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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.
Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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.
Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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

Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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]

Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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.
Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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.
Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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>

Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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>]

Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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.
Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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.
Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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

Source§

type Error = ValueError

Reports a missing string or an exact runtime type mismatch.

Source§

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>

Source§

type Error = ValueWireEncodeError

V1 representation validation failure; the borrowed input is unchanged.

Source§

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>

Source§

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>

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

Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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>

Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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

Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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>

Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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

Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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>

Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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

Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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>

Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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

Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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>

Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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

Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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>

Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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

Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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>

Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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

Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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>

Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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

Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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>

Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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

Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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>

Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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

Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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>

Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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

Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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>

Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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

Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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>

Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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

Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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>

Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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.
Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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.
Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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.
Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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.
Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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

Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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>

Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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.
Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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.
Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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.
Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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.
Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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.
Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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.
Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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.
Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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.
Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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

Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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>

Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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.
Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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.
Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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>

Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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>>

Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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.
Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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.
Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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>

Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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>

Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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>

Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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>

Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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>

Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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>

Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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>

Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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>

Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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>

Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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>

Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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>

Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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>

Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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>

Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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>

Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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.
Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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.
Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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>

Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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.
Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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.
Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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.
Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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.
Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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>

Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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.
Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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>>

Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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.
Source§

type Error = ValueError

Reports a missing value or an exact runtime type mismatch.

Source§

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

Source§

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>

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

Source§

type Error = ValueWireEncodeError

Failure to represent the consumed runtime value under the V1 contract.

Source§

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.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoValueDefault<T> for T

Source§

fn into_value_default(self) -> T

Returns the owned value unchanged as the default.

§Returns

The input value, moved without cloning.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.