pub enum ColumnValue {
Null,
Integer(i64),
Real(f64),
Text(String),
Blob(Vec<u8>),
Date(i64),
BigInt(String),
}Variants§
Implementations§
Source§impl ColumnValue
impl ColumnValue
pub fn from_rusqlite_value(value: &Value) -> Self
pub fn to_rusqlite_value(&self) -> Value
Trait Implementations§
Source§impl Clone for ColumnValue
impl Clone for ColumnValue
Source§fn clone(&self) -> ColumnValue
fn clone(&self) -> ColumnValue
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ColumnValue
impl Debug for ColumnValue
Source§impl<'de> Deserialize<'de> for ColumnValue
impl<'de> Deserialize<'de> for ColumnValue
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
Source§impl FromWasmAbi for ColumnValuewhere
Self: DeserializeOwned,
impl FromWasmAbi for ColumnValuewhere
Self: DeserializeOwned,
Source§impl IntoWasmAbi for ColumnValuewhere
Self: Serialize,
impl IntoWasmAbi for ColumnValuewhere
Self: Serialize,
Source§impl OptionFromWasmAbi for ColumnValuewhere
Self: DeserializeOwned,
impl OptionFromWasmAbi for ColumnValuewhere
Self: DeserializeOwned,
Source§impl OptionIntoWasmAbi for ColumnValuewhere
Self: Serialize,
impl OptionIntoWasmAbi for ColumnValuewhere
Self: Serialize,
Source§impl PartialEq for ColumnValue
impl PartialEq for ColumnValue
Source§impl Serialize for ColumnValue
impl Serialize for ColumnValue
Source§impl Tsify for ColumnValue
impl Tsify for ColumnValue
const DECL: &'static str = "export type ColumnValue = { type: \"Null\" } | { type: \"Integer\"; value: number } | { type: \"Real\"; value: number } | { type: \"Text\"; value: string } | { type: \"Blob\"; value: number[] } | { type: \"Date\"; value: number } | { type: \"BigInt\"; value: string };"
type JsType = JsType
fn into_js(&self) -> Result<Self::JsType, Error>where
Self: Serialize,
fn from_js<T>(js: T) -> Result<Self, Error>
impl StructuralPartialEq for ColumnValue
Auto Trait Implementations§
impl Freeze for ColumnValue
impl RefUnwindSafe for ColumnValue
impl Send for ColumnValue
impl Sync for ColumnValue
impl Unpin for ColumnValue
impl UnwindSafe for ColumnValue
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.