pub struct DynamicValue {
pub type_: Type,
pub value: Value,
}Expand description
A row of a Variant, Dynamic or Geometry column: the value and its actual type.
Fields§
§type_: Type§value: ValueImplementations§
Trait Implementations§
Source§impl Clone for DynamicValue
impl Clone for DynamicValue
Source§impl Debug for DynamicValue
impl Debug for DynamicValue
Source§impl<'de> Deserialize<'de> for DynamicValue
impl<'de> Deserialize<'de> for DynamicValue
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for DynamicValue
Source§impl FromSql for DynamicValue
A Variant/Dynamic/Geometry row with its actual type (LineString stays LineString);
any other column gives its own type. NULL rows need an Option<DynamicValue>.
impl FromSql for DynamicValue
A Variant/Dynamic/Geometry row with its actual type (LineString stays LineString);
any other column gives its own type. NULL rows need an Option<DynamicValue>.
fn from_sql(type_: &Type, value: Value) -> Result<Self>
Source§fn from_sql_column(type_: &Type, value: Value) -> Result<Self>
fn from_sql_column(type_: &Type, value: Value) -> Result<Self>
Converts a value as read from a column of
type_. By default the wrappers listed in
from_sql_resolved are looked through first; types that keep the raw value (like
Value) override this.Source§impl Hash for DynamicValue
impl Hash for DynamicValue
Source§impl PartialEq for DynamicValue
impl PartialEq for DynamicValue
Source§impl Serialize for DynamicValue
impl Serialize for DynamicValue
impl StructuralPartialEq for DynamicValue
Auto Trait Implementations§
impl Freeze for DynamicValue
impl RefUnwindSafe for DynamicValue
impl Send for DynamicValue
impl Sync for DynamicValue
impl Unpin for DynamicValue
impl UnsafeUnpin for DynamicValue
impl UnwindSafe for DynamicValue
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.