teo_runtime::value::value

Enum Value

Source
pub enum Value {
Show 23 variants Null, Bool(bool), Int(i32), Int64(i64), Float32(f32), Float(f64), Decimal(BigDecimal), ObjectId(ObjectId), String(String), Date(NaiveDate), DateTime(DateTime<Utc>), Array(Vec<Value>), Dictionary(IndexMap<String, Value>), Range(Range), Tuple(Vec<Value>), InterfaceEnumVariant(InterfaceEnumVariant), OptionVariant(OptionVariant), Regex(Regex), File(File), ModelObject(Object), StructObject(Object), Pipeline(Pipeline), Type(Type),
}
Expand description

Represents any valid Teon value.

Variants§

§

Null

Represents a Teon null value.

let v = teon!(null);
§

Bool(bool)

Represents a Teon Bool.

let v = teon!(true);
§

Int(i32)

Represents a Teon Int.

let v = teon!(12_i32);
§

Int64(i64)

Represents a Teon Int64.

let v = teon!(12_i64);
§

Float32(f32)

Represents a Teon Float32.

let v = teon!(12.5_f32);
§

Float(f64)

Represents a Teon Float.

let v = teon!(12.5_f64);
§

Decimal(BigDecimal)

Represents a Teon Decimal.

§

ObjectId(ObjectId)

Represents a Teon ObjectId.

§

String(String)

Represents a Teon String.

§

Date(NaiveDate)

Represents a Teon Date.

§

DateTime(DateTime<Utc>)

Represents a Teon DateTime.

§

Array(Vec<Value>)

Represents a Teon Array.

§

Dictionary(IndexMap<String, Value>)

Represents a Teon btree_dictionary.

§

Range(Range)

Represents a Teon Range.

§

Tuple(Vec<Value>)

Represents a Teon Tuple.

§

InterfaceEnumVariant(InterfaceEnumVariant)

Represents a Teon option variant.

§

OptionVariant(OptionVariant)

Represents a Teon option variant.

§

Regex(Regex)

Represents a Teon Regex.

§

File(File)

Represents a Teon File.

§

ModelObject(Object)

Represents a model object.

§

StructObject(Object)

Represents a struct object.

§

Pipeline(Pipeline)

Represents a pipeline.

§

Type(Type)

Represents a type as value.

Implementations§

Source§

impl Value

Source

pub fn get<I: Index>(&self, index: I) -> Option<&Value>

Source

pub fn get_mut<I: Index>(&mut self, index: I) -> Option<&mut Value>

Source

pub fn is_null(&self) -> bool

Source

pub fn is_bool(&self) -> bool

Source

pub fn as_bool(&self) -> Option<bool>

Source

pub fn is_int(&self) -> bool

Source

pub fn as_int(&self) -> Option<i32>

Source

pub fn to_int(&self) -> Option<i32>

Source

pub fn is_int64(&self) -> bool

Source

pub fn as_int64(&self) -> Option<i64>

Source

pub fn to_int64(&self) -> Option<i64>

Source

pub fn is_float32(&self) -> bool

Source

pub fn as_float32(&self) -> Option<f32>

Source

pub fn to_float32(&self) -> Option<f32>

Source

pub fn is_float(&self) -> bool

Source

pub fn as_float(&self) -> Option<f64>

Source

pub fn to_float(&self) -> Option<f64>

Source

pub fn is_decimal(&self) -> bool

Source

pub fn as_decimal(&self) -> Option<&BigDecimal>

Source

pub fn is_object_id(&self) -> bool

Source

pub fn as_object_id(&self) -> Option<&ObjectId>

Source

pub fn is_string(&self) -> bool

Source

pub fn as_str(&self) -> Option<&str>

Source

pub fn is_date(&self) -> bool

Source

pub fn as_date(&self) -> Option<&NaiveDate>

Source

pub fn is_datetime(&self) -> bool

Source

pub fn as_datetime(&self) -> Option<&DateTime<Utc>>

Source

pub fn is_array(&self) -> bool

Source

pub fn as_array(&self) -> Option<&Vec<Value>>

Source

pub fn as_array_mut(&mut self) -> Option<&mut Vec<Value>>

Source

pub fn into_array(self) -> Option<Vec<Value>>

Source

pub fn is_dictionary(&self) -> bool

Source

pub fn as_dictionary(&self) -> Option<&IndexMap<String, Value>>

Source

pub fn as_dictionary_mut(&mut self) -> Option<&mut IndexMap<String, Value>>

Source

pub fn is_range(&self) -> bool

Source

pub fn as_range(&self) -> Option<&Range>

Source

pub fn is_tuple(&self) -> bool

Source

pub fn as_tuple(&self) -> Option<&Vec<Value>>

Source

pub fn is_option_variant(&self) -> bool

Source

pub fn as_option_variant(&self) -> Option<&OptionVariant>

Source

pub fn is_interface_enum_variant(&self) -> bool

Source

pub fn as_interface_enum_variant(&self) -> Option<&InterfaceEnumVariant>

Source

pub fn is_regexp(&self) -> bool

Source

pub fn as_regexp(&self) -> Option<&Regex>

Source

pub fn is_file(&self) -> bool

Source

pub fn as_file(&self) -> Option<&File>

Source

pub fn is_model_object(&self) -> bool

Source

pub fn as_model_object(&self) -> Option<&Object>

Source

pub fn is_struct_object(&self) -> bool

Source

pub fn as_struct_object(&self) -> Option<&Object>

Source

pub fn is_pipeline(&self) -> bool

Source

pub fn as_pipeline(&self) -> Option<&Pipeline>

Source

pub fn is_type(&self) -> bool

Source

pub fn as_type(&self) -> Option<&Type>

Source

pub fn is_any_int(&self) -> bool

Source

pub fn is_any_float(&self) -> bool

Source

pub fn is_any_int_or_float(&self) -> bool

Source

pub fn is_any_number(&self) -> bool

Source

pub fn to_usize(&self) -> Option<usize>

Source

pub fn wrap_into_vec<T>(self) -> Result<Vec<T>>
where T: TryFrom<Value>, T::Error: Display,

Source

pub fn take(&mut self) -> Value

Takes the value out of the Value, leaving a Null in its place.

Source

pub fn type_hint(&self) -> &str

Source

pub fn recip(&self) -> Result<Value>

Source

pub fn normal_not(&self) -> Value

Source

pub fn and<'a>(&'a self, rhs: &'a Value) -> &'a Value

Source

pub fn or<'a>(&'a self, rhs: &'a Value) -> &'a Value

Source

pub fn is_false(&self) -> bool

Source

pub fn is_true(&self) -> bool

Source

pub fn try_into_err_prefix<T, E>(self, prefix: impl AsRef<str>) -> Result<T>
where Error: From<E>, T: TryFrom<Value, Error = E>,

Source

pub fn try_into_err_message<T, E>(self, message: impl AsRef<str>) -> Result<T>
where Error: From<E>, T: TryFrom<Value, Error = E>,

Source

pub fn try_ref_into_err_prefix<'a, T, E>( &'a self, prefix: impl AsRef<str>, ) -> Result<T>
where Error: From<E>, T: TryFrom<&'a Value, Error = E> + 'a,

Source

pub fn try_ref_into_err_message<'a, T, E>( &'a self, message: impl AsRef<str>, ) -> Result<T>
where Error: From<E>, T: TryFrom<&'a Value, Error = E> + 'a,

Source

pub fn is_of_type(&self, t: &Type, namespace: &Namespace) -> bool

Trait Implementations§

Source§

impl Add for &Value

Source§

type Output = Result<Value, Error>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: Self) -> Self::Output

Performs the + operation. Read more
Source§

impl AsRef<Value> for Value

Source§

fn as_ref(&self) -> &Value

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl BitAnd for &Value

Source§

type Output = Result<Value, Error>

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: Self) -> Self::Output

Performs the & operation. Read more
Source§

impl BitOr for &Value

Source§

type Output = Result<Value, Error>

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: Self) -> Self::Output

Performs the | operation. Read more
Source§

impl BitXor for &Value

Source§

type Output = Result<Value, Error>

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: Self) -> Self::Output

Performs the ^ operation. Read more
Source§

impl Clone for Value

Source§

fn clone(&self) -> Value

Returns a copy of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for Value

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Default for Value

Source§

fn default() -> Value

Returns the “default value” for a type. Read more
Source§

impl Display for Value

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Div for &Value

Source§

type Output = Result<Value, Error>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Self) -> Self::Output

Performs the / operation. Read more
Source§

impl ExtractFromPipelineCtx for Value

Source§

fn extract(_: &Arguments, ctx: &Ctx) -> Self

Source§

impl<'a> ExtractFromRequest<'a> for &'a Value

Source§

fn extract(request: &'a Request) -> Self

Source§

impl<'a> ExtractFromRequest<'a> for Value

Source§

fn extract(request: &'a Request) -> Self

Source§

impl From<&BigDecimal> for Value

Source§

fn from(v: &BigDecimal) -> Self

Converts to this type from the input type.
Source§

impl From<&DateTime<Utc>> for Value

Source§

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

Converts to this type from the input type.
Source§

impl From<&Error> for Value

Source§

fn from(value: &Error) -> Value

Converts to this type from the input type.
Source§

impl From<&File> for Value

Source§

fn from(value: &File) -> Self

Converts to this type from the input type.
Source§

impl From<&InterfaceEnumVariant> for Value

Source§

fn from(value: &InterfaceEnumVariant) -> Self

Converts to this type from the input type.
Source§

impl From<&NaiveDate> for Value

Source§

fn from(v: &NaiveDate) -> Self

Converts to this type from the input type.
Source§

impl From<&Object> for Value

Source§

fn from(value: &Object) -> Self

Converts to this type from the input type.
Source§

impl From<&Object> for Value

Source§

fn from(value: &Object) -> Self

Converts to this type from the input type.
Source§

impl From<&ObjectId> for Value

Source§

fn from(v: &ObjectId) -> Self

Converts to this type from the input type.
Source§

impl From<&OptionVariant> for Value

Source§

fn from(value: &OptionVariant) -> Self

Converts to this type from the input type.
Source§

impl From<&Pipeline> for Value

Source§

fn from(value: &Pipeline) -> Self

Converts to this type from the input type.
Source§

impl From<&String> for Value

Source§

fn from(v: &String) -> Self

Converts to this type from the input type.
Source§

impl From<&Value> for Value

Source§

fn from(value: &JsonValue) -> Self

Converts to this type from the input type.
Source§

impl From<&Value> for Value

Source§

fn from(v: &Value) -> Self

Converts to this type from the input type.
Source§

impl<T> From<&Vec<T>> for Value
where T: Into<Value> + Clone,

Source§

fn from(value: &Vec<T>) -> Self

Converts to this type from the input type.
Source§

impl From<&bool> for Value

Source§

fn from(v: &bool) -> Self

Converts to this type from the input type.
Source§

impl From<&f32> for Value

Source§

fn from(v: &f32) -> Self

Converts to this type from the input type.
Source§

impl From<&f64> for Value

Source§

fn from(v: &f64) -> Self

Converts to this type from the input type.
Source§

impl From<&i32> for Value

Source§

fn from(v: &i32) -> Self

Converts to this type from the input type.
Source§

impl From<&i64> for Value

Source§

fn from(v: &i64) -> Self

Converts to this type from the input type.
Source§

impl From<&str> for Value

Source§

fn from(v: &str) -> Self

Converts to this type from the input type.
Source§

impl From<&usize> for Value

Source§

fn from(v: &usize) -> Self

Converts to this type from the input type.
Source§

impl From<BigDecimal> for Value

Source§

fn from(v: BigDecimal) -> Self

Converts to this type from the input type.
Source§

impl From<DateTime<Utc>> for Value

Source§

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

Converts to this type from the input type.
Source§

impl From<Error> for Value

Source§

fn from(value: Error) -> Value

Converts to this type from the input type.
Source§

impl From<File> for Value

Source§

fn from(value: File) -> Self

Converts to this type from the input type.
Source§

impl<T> From<IndexMap<String, T>> for Value
where T: Into<Value>,

Source§

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

Converts to this type from the input type.
Source§

impl From<InterfaceEnumVariant> for Value

Source§

fn from(value: InterfaceEnumVariant) -> Self

Converts to this type from the input type.
Source§

impl From<NaiveDate> for Value

Source§

fn from(v: NaiveDate) -> Self

Converts to this type from the input type.
Source§

impl From<Object> for Value

Source§

fn from(value: Object) -> Self

Converts to this type from the input type.
Source§

impl From<Object> for Value

Source§

fn from(value: Object) -> Self

Converts to this type from the input type.
Source§

impl From<ObjectId> for Value

Source§

fn from(v: ObjectId) -> Self

Converts to this type from the input type.
Source§

impl From<Option<&BigDecimal>> for Value

Source§

fn from(v: Option<&BigDecimal>) -> Self

Converts to this type from the input type.
Source§

impl From<Option<&DateTime<Utc>>> for Value

Source§

fn from(v: Option<&DateTime<Utc>>) -> Self

Converts to this type from the input type.
Source§

impl From<Option<&InterfaceEnumVariant>> for Value

Source§

fn from(value: Option<&InterfaceEnumVariant>) -> Self

Converts to this type from the input type.
Source§

impl From<Option<&NaiveDate>> for Value

Source§

fn from(v: Option<&NaiveDate>) -> Self

Converts to this type from the input type.
Source§

impl From<Option<&Object>> for Value

Source§

fn from(value: Option<&Object>) -> Self

Converts to this type from the input type.
Source§

impl From<Option<&Object>> for Value

Source§

fn from(value: Option<&Object>) -> Self

Converts to this type from the input type.
Source§

impl From<Option<&ObjectId>> for Value

Source§

fn from(v: Option<&ObjectId>) -> Self

Converts to this type from the input type.
Source§

impl From<Option<&Pipeline>> for Value

Source§

fn from(value: Option<&Pipeline>) -> Self

Converts to this type from the input type.
Source§

impl From<Option<&String>> for Value

Source§

fn from(value: Option<&String>) -> Self

Converts to this type from the input type.
Source§

impl<T> From<Option<&Vec<T>>> for Value
where T: Into<Value> + Clone,

Source§

fn from(value: Option<&Vec<T>>) -> Self

Converts to this type from the input type.
Source§

impl From<Option<&bool>> for Value

Source§

fn from(v: Option<&bool>) -> Self

Converts to this type from the input type.
Source§

impl From<Option<&f32>> for Value

Source§

fn from(v: Option<&f32>) -> Self

Converts to this type from the input type.
Source§

impl From<Option<&f64>> for Value

Source§

fn from(v: Option<&f64>) -> Self

Converts to this type from the input type.
Source§

impl From<Option<&i32>> for Value

Source§

fn from(v: Option<&i32>) -> Self

Converts to this type from the input type.
Source§

impl From<Option<&i64>> for Value

Source§

fn from(v: Option<&i64>) -> Self

Converts to this type from the input type.
Source§

impl From<Option<&str>> for Value

Source§

fn from(v: Option<&str>) -> Self

Converts to this type from the input type.
Source§

impl From<Option<&usize>> for Value

Source§

fn from(v: Option<&usize>) -> Self

Converts to this type from the input type.
Source§

impl From<Option<BigDecimal>> for Value

Source§

fn from(v: Option<BigDecimal>) -> Self

Converts to this type from the input type.
Source§

impl From<Option<DateTime<Utc>>> for Value

Source§

fn from(v: Option<DateTime<Utc>>) -> Self

Converts to this type from the input type.
Source§

impl<T> From<Option<IndexMap<String, T>>> for Value
where T: Into<Value> + Clone,

Source§

fn from(value: Option<IndexMap<String, T>>) -> Self

Converts to this type from the input type.
Source§

impl From<Option<InterfaceEnumVariant>> for Value

Source§

fn from(value: Option<InterfaceEnumVariant>) -> Self

Converts to this type from the input type.
Source§

impl From<Option<NaiveDate>> for Value

Source§

fn from(v: Option<NaiveDate>) -> Self

Converts to this type from the input type.
Source§

impl From<Option<Object>> for Value

Source§

fn from(value: Option<Object>) -> Self

Converts to this type from the input type.
Source§

impl From<Option<Object>> for Value

Source§

fn from(value: Option<Object>) -> Self

Converts to this type from the input type.
Source§

impl From<Option<ObjectId>> for Value

Source§

fn from(v: Option<ObjectId>) -> Self

Converts to this type from the input type.
Source§

impl From<Option<Pipeline>> for Value

Source§

fn from(value: Option<Pipeline>) -> Self

Converts to this type from the input type.
Source§

impl From<Option<String>> for Value

Source§

fn from(value: Option<String>) -> Self

Converts to this type from the input type.
Source§

impl From<Option<Type>> for Value

Source§

fn from(value: Option<Type>) -> Self

Converts to this type from the input type.
Source§

impl From<Option<Value>> for Value

Source§

fn from(v: Option<Value>) -> Self

Converts to this type from the input type.
Source§

impl<T> From<Option<Vec<T>>> for Value
where T: Into<Value>,

Source§

fn from(value: Option<Vec<T>>) -> Self

Converts to this type from the input type.
Source§

impl From<Option<bool>> for Value

Source§

fn from(v: Option<bool>) -> Self

Converts to this type from the input type.
Source§

impl From<Option<f32>> for Value

Source§

fn from(v: Option<f32>) -> Self

Converts to this type from the input type.
Source§

impl From<Option<f64>> for Value

Source§

fn from(v: Option<f64>) -> Self

Converts to this type from the input type.
Source§

impl From<Option<i32>> for Value

Source§

fn from(v: Option<i32>) -> Self

Converts to this type from the input type.
Source§

impl From<Option<i64>> for Value

Source§

fn from(v: Option<i64>) -> Self

Converts to this type from the input type.
Source§

impl From<Option<usize>> for Value

Source§

fn from(v: Option<usize>) -> Self

Converts to this type from the input type.
Source§

impl From<OptionVariant> for Value

Source§

fn from(value: OptionVariant) -> Self

Converts to this type from the input type.
Source§

impl From<Pipeline> for Value

Source§

fn from(value: Pipeline) -> Self

Converts to this type from the input type.
Source§

impl From<String> for Value

Source§

fn from(v: String) -> Self

Converts to this type from the input type.
Source§

impl From<Type> for Value

Source§

fn from(v: Type) -> Self

Converts to this type from the input type.
Source§

impl From<Value> for Value

Source§

fn from(value: JsonValue) -> Self

Converts to this type from the input type.
Source§

impl From<Value> for Value

Source§

fn from(value: ParserValue) -> Self

Converts to this type from the input type.
Source§

impl<T> From<Vec<T>> for Value
where T: Into<Value>,

Source§

fn from(value: Vec<T>) -> Self

Converts to this type from the input type.
Source§

impl From<bool> for Value

Source§

fn from(v: bool) -> Self

Converts to this type from the input type.
Source§

impl From<f32> for Value

Source§

fn from(v: f32) -> Self

Converts to this type from the input type.
Source§

impl From<f64> for Value

Source§

fn from(v: f64) -> Self

Converts to this type from the input type.
Source§

impl From<i32> for Value

Source§

fn from(v: i32) -> Self

Converts to this type from the input type.
Source§

impl From<i64> for Value

Source§

fn from(v: i64) -> Self

Converts to this type from the input type.
Source§

impl From<usize> for Value

Source§

fn from(v: usize) -> Self

Converts to this type from the input type.
Source§

impl<I> Index<I> for Value
where I: Index,

Source§

type Output = Value

The returned type after indexing.
Source§

fn index(&self, index: I) -> &Value

Performs the indexing (container[index]) operation. Read more
Source§

impl<I> IndexMut<I> for Value
where I: Index,

Source§

fn index_mut(&mut self, index: I) -> &mut Value

Performs the mutable indexing (container[index]) operation. Read more
Source§

impl Mul for &Value

Source§

type Output = Result<Value, Error>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Self) -> Self::Output

Performs the * operation. Read more
Source§

impl Neg for &Value

Source§

type Output = Result<Value, Error>

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
Source§

impl Not for &Value

Source§

type Output = Result<Value, Error>

The resulting type after applying the ! operator.
Source§

fn not(self) -> Self::Output

Performs the unary ! operation. Read more
Source§

impl PartialEq for Value

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd for Value

Source§

fn partial_cmp(&self, other: &Self) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

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

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

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

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl Rem for &Value

Source§

type Output = Result<Value, Error>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: Self) -> Self::Output

Performs the % operation. Read more
Source§

impl Serialize for Value

Source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Shl for &Value

Source§

type Output = Result<Value, Error>

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: Self) -> Self::Output

Performs the << operation. Read more
Source§

impl Shr for &Value

Source§

type Output = Result<Value, Error>

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: Self) -> Self::Output

Performs the >> operation. Read more
Source§

impl Sub for &Value

Source§

type Output = Result<Value, Error>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: Self) -> Self::Output

Performs the - operation. Read more
Source§

impl<'a> TryFrom<&'a Value> for &'a BigDecimal

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a> TryFrom<&'a Value> for &'a DateTime<Utc>

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a> TryFrom<&'a Value> for &'a File

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Value) -> Result<&'a File, Self::Error>

Performs the conversion.
Source§

impl<'a> TryFrom<&'a Value> for &'a IndexMap<String, Value>

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a> TryFrom<&'a Value> for &'a InterfaceEnumVariant

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a> TryFrom<&'a Value> for &'a NaiveDate

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a> TryFrom<&'a Value> for &'a Object

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a> TryFrom<&'a Value> for &'a Object

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a> TryFrom<&'a Value> for &'a ObjectId

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a> TryFrom<&'a Value> for &'a OptionVariant

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Value) -> Result<&'a OptionVariant, Self::Error>

Performs the conversion.
Source§

impl<'a> TryFrom<&'a Value> for &'a Pipeline

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a> TryFrom<&'a Value> for &'a Range

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a> TryFrom<&'a Value> for &'a Regex

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a> TryFrom<&'a Value> for &'a String

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a> TryFrom<&'a Value> for &'a Type

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a> TryFrom<&'a Value> for &'a Vec<Value>

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a> TryFrom<&'a Value> for &'a bool

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a> TryFrom<&'a Value> for &'a f32

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a> TryFrom<&'a Value> for &'a f64

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a> TryFrom<&'a Value> for &'a i32

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a> TryFrom<&'a Value> for &'a i64

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a> TryFrom<&'a Value> for &'a str

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Value> for Action

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Value> for BigDecimal

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Value> for DateTime<Utc>

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Value> for Delete

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a> TryFrom<&'a Value> for File

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a> TryFrom<&'a Value> for InterfaceEnumVariant

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Value> for Method

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Value> for NaiveDate

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Value> for Object

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Value> for Object

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a> TryFrom<&'a Value> for Option<&'a BigDecimal>

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a> TryFrom<&'a Value> for Option<&'a DateTime<Utc>>

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a> TryFrom<&'a Value> for Option<&'a File>

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Value) -> Result<Option<&'a File>, Self::Error>

Performs the conversion.
Source§

impl<'a> TryFrom<&'a Value> for Option<&'a NaiveDate>

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a> TryFrom<&'a Value> for Option<&'a Object>

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a> TryFrom<&'a Value> for Option<&'a ObjectId>

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a> TryFrom<&'a Value> for Option<&'a OptionVariant>

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Value) -> Result<Option<&'a OptionVariant>, Self::Error>

Performs the conversion.
Source§

impl<'a> TryFrom<&'a Value> for Option<&'a Range>

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a> TryFrom<&'a Value> for Option<&'a String>

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a> TryFrom<&'a Value> for Option<&'a bool>

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a> TryFrom<&'a Value> for Option<&'a f32>

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a> TryFrom<&'a Value> for Option<&'a f64>

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a> TryFrom<&'a Value> for Option<&'a i32>

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a> TryFrom<&'a Value> for Option<&'a i64>

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a> TryFrom<&'a Value> for Option<&'a str>

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Value) -> Result<Option<&'a str>, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Value> for Option<BigDecimal>

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Value> for Option<DateTime<Utc>>

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a> TryFrom<&'a Value> for Option<File>

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Value) -> Result<Option<File>, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Value> for Option<NaiveDate>

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Value> for Option<Object>

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a> TryFrom<&'a Value> for Option<OptionVariant>

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Value) -> Result<Option<OptionVariant>, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Value> for Option<Range>

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a> TryFrom<&'a Value> for Option<String>

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a> TryFrom<&'a Value> for Option<Value>

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<T, E> TryFrom<&Value> for Option<Vec<T>>
where T: TryFrom<Value, Error = E> + Clone, Error: From<E>,

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Value> for Option<bool>

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Value> for Option<f32>

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Value> for Option<f64>

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Value> for Option<i32>

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Value> for Option<i64>

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Value> for Option<usize>

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a> TryFrom<&'a Value> for OptionVariant

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Value> for Pipeline

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Value> for Range

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Value> for Regex

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Value> for Sort

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Value> for String

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Value> for TypeScriptHTTPProvider

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Value> for Update

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Value> for Value

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &Value) -> Result<JsonValue, Self::Error>

Performs the conversion.
Source§

impl<'a, T, E> TryFrom<&'a Value> for Vec<T>
where T: TryFrom<&'a Value, Error = E>, Error: From<E>,

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Value> for bool

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Value> for f32

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Value> for f64

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Value> for i32

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Value> for i64

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Value> for usize

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<T0, T1> TryFrom<Value> for (T0, T1)
where T0: TryFrom<Value, Error = Error>, T1: TryFrom<Value, Error = Error>,

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<T0, T1, T2> TryFrom<Value> for (T0, T1, T2)
where T0: TryFrom<Value, Error = Error>, T1: TryFrom<Value, Error = Error>, T2: TryFrom<Value, Error = Error>,

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for Action

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for BigDecimal

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for ClientHost

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for ClientLanguage

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for Database

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for DateTime<Utc>

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for File

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for InterfaceEnumVariant

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for Language

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for NaiveDate

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for Object

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for Object

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for Option<BigDecimal>

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for Option<DateTime<Utc>>

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for Option<File>

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for Option<NaiveDate>

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for Option<Object>

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for Option<OptionVariant>

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for Option<Range>

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for Option<String>

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<T, E> TryFrom<Value> for Option<Vec<T>>
where T: TryFrom<Value, Error = E> + Clone, Error: From<E>,

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for Option<bool>

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for Option<f32>

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for Option<f64>

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for Option<i32>

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for Option<i64>

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for Option<usize>

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for OptionVariant

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for Pipeline

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for Range

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for Regex

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for Runtime

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for Sort

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for String

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for Type

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for TypeScriptHTTPProvider

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for Value

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Value) -> Result<JsonValue, Self::Error>

Performs the conversion.
Source§

impl<T, E> TryFrom<Value> for Vec<T>
where T: TryFrom<Value, Error = E>, Error: From<E>,

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for bool

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for f32

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for f64

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for i32

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for i64

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Value> for usize

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a, T> TryInto<IndexMap<String, T>> for &'a Value
where T: TryFrom<&'a Value>, T::Error: Display,

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<IndexMap<String, T>, Self::Error>

Performs the conversion.
Source§

impl<T> TryInto<IndexMap<String, T>> for Value
where T: TryFrom<Value>, T::Error: Display,

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<IndexMap<String, T>, Self::Error>

Performs the conversion.
Source§

impl TryInto<ObjectId> for &Value

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<ObjectId, Self::Error>

Performs the conversion.
Source§

impl TryInto<ObjectId> for Value

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<ObjectId, Self::Error>

Performs the conversion.
Source§

impl<'a> TryInto<Option<&'a Regex>> for &'a Value

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<Option<&'a Regex>, Self::Error>

Performs the conversion.
Source§

impl<'a, T> TryInto<Option<IndexMap<String, T>>> for &'a Value
where T: TryFrom<&'a Value>, T::Error: Display,

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<Option<IndexMap<String, T>>, Self::Error>

Performs the conversion.
Source§

impl<T> TryInto<Option<IndexMap<String, T>>> for Value
where T: TryFrom<Value>, T::Error: Display,

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<Option<IndexMap<String, T>>, Self::Error>

Performs the conversion.
Source§

impl TryInto<Option<ObjectId>> for &Value

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<Option<ObjectId>, Self::Error>

Performs the conversion.
Source§

impl TryInto<Option<ObjectId>> for Value

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<Option<ObjectId>, Self::Error>

Performs the conversion.
Source§

impl TryInto<Option<Regex>> for &Value

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<Option<Regex>, Self::Error>

Performs the conversion.
Source§

impl TryInto<Option<Regex>> for Value

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<Option<Regex>, Self::Error>

Performs the conversion.

Auto Trait Implementations§

§

impl Freeze for Value

§

impl !RefUnwindSafe for Value

§

impl Send for Value

§

impl Sync for Value

§

impl Unpin for Value

§

impl !UnwindSafe for Value

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, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<T> Conv for T

Source§

fn conv<T>(self) -> T
where Self: Into<T>,

Converts self into T using Into<T>. Read more
Source§

impl<T> FmtForward for T

Source§

fn fmt_binary(self) -> FmtBinary<Self>
where Self: Binary,

Causes self to use its Binary implementation when Debug-formatted.
Source§

fn fmt_display(self) -> FmtDisplay<Self>
where Self: Display,

Causes self to use its Display implementation when Debug-formatted.
Source§

fn fmt_lower_exp(self) -> FmtLowerExp<Self>
where Self: LowerExp,

Causes self to use its LowerExp implementation when Debug-formatted.
Source§

fn fmt_lower_hex(self) -> FmtLowerHex<Self>
where Self: LowerHex,

Causes self to use its LowerHex implementation when Debug-formatted.
Source§

fn fmt_octal(self) -> FmtOctal<Self>
where Self: Octal,

Causes self to use its Octal implementation when Debug-formatted.
Source§

fn fmt_pointer(self) -> FmtPointer<Self>
where Self: Pointer,

Causes self to use its Pointer implementation when Debug-formatted.
Source§

fn fmt_upper_exp(self) -> FmtUpperExp<Self>
where Self: UpperExp,

Causes self to use its UpperExp implementation when Debug-formatted.
Source§

fn fmt_upper_hex(self) -> FmtUpperHex<Self>
where Self: UpperHex,

Causes self to use its UpperHex implementation when Debug-formatted.
Source§

fn fmt_list(self) -> FmtList<Self>
where &'a Self: for<'a> IntoIterator,

Formats each item in a sequence. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Pipe for T
where T: ?Sized,

Source§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
Source§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
Source§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where R: 'a,

Mutably borrows self and passes that borrow into the pipe function. Read more
Source§

fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
where Self: Borrow<B>, B: 'a + ?Sized, R: 'a,

Borrows self, then passes self.borrow() into the pipe function. Read more
Source§

fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
where Self: BorrowMut<B>, B: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.borrow_mut() into the pipe function. Read more
Source§

fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
where Self: AsRef<U>, U: 'a + ?Sized, R: 'a,

Borrows self, then passes self.as_ref() into the pipe function.
Source§

fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
where Self: AsMut<U>, U: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.as_mut() into the pipe function.
Source§

fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
where Self: Deref<Target = T>, T: 'a + ?Sized, R: 'a,

Borrows self, then passes self.deref() into the pipe function.
Source§

fn pipe_deref_mut<'a, T, R>( &'a mut self, func: impl FnOnce(&'a mut T) -> R, ) -> R
where Self: DerefMut<Target = T> + Deref, T: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.deref_mut() into the pipe function.
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> Tap for T

Source§

fn tap(self, func: impl FnOnce(&Self)) -> Self

Immutable access to a value. Read more
Source§

fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

Mutable access to a value. Read more
Source§

fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
where Self: Borrow<B>, B: ?Sized,

Immutable access to the Borrow<B> of a value. Read more
Source§

fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
where Self: BorrowMut<B>, B: ?Sized,

Mutable access to the BorrowMut<B> of a value. Read more
Source§

fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
where Self: AsRef<R>, R: ?Sized,

Immutable access to the AsRef<R> view of a value. Read more
Source§

fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
where Self: AsMut<R>, R: ?Sized,

Mutable access to the AsMut<R> view of a value. Read more
Source§

fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
where Self: Deref<Target = T>, T: ?Sized,

Immutable access to the Deref::Target of a value. Read more
Source§

fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
where Self: DerefMut<Target = T> + Deref, T: ?Sized,

Mutable access to the Deref::Target of a value. Read more
Source§

fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

Calls .tap() only in debug builds, and is erased in release builds.
Source§

fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

Calls .tap_mut() only in debug builds, and is erased in release builds.
Source§

fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
where Self: Borrow<B>, B: ?Sized,

Calls .tap_borrow() only in debug builds, and is erased in release builds.
Source§

fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
where Self: BorrowMut<B>, B: ?Sized,

Calls .tap_borrow_mut() only in debug builds, and is erased in release builds.
Source§

fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
where Self: AsRef<R>, R: ?Sized,

Calls .tap_ref() only in debug builds, and is erased in release builds.
Source§

fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
where Self: AsMut<R>, R: ?Sized,

Calls .tap_ref_mut() only in debug builds, and is erased in release builds.
Source§

fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
where Self: Deref<Target = T>, T: ?Sized,

Calls .tap_deref() only in debug builds, and is erased in release builds.
Source§

fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
where Self: DerefMut<Target = T> + Deref, T: ?Sized,

Calls .tap_deref_mut() only in debug builds, and is erased in release builds.
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> ToString for T
where T: Display + ?Sized,

Source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T> TryConv for T

Source§

fn try_conv<T>(self) -> Result<T, Self::Error>
where Self: TryInto<T>,

Attempts to convert self into T using TryInto<T>. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more