pub enum Value {
Text(String),
Integer(i64),
Boolean(u8),
Identifier(u64),
Blob(Vec<u8>),
Json(Vec<u8>),
Null,
}
Expand description
A value for a column
Variants§
Text(String)
A text (String) value
Integer(i64)
An integer (i64) values so the values can be positive or negative
Boolean(u8)
A boolean (i64) value (0 or 1) This is because SQLite does not have a boolean type
Identifier(u64)
Identifier Key type (Primary / Forigen Key) which is a u64
Blob(Vec<u8>)
A binary blob value (vector of bytes)
Json(Vec<u8>)
JSON blob
Null
A NULL value
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Value
impl<'de> Deserialize<'de> for Value
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<T> From<&ForeignKey<i32, T>> for Valuewhere
T: TableBuilder + TablePrimaryKey,
impl<T> From<&ForeignKey<i32, T>> for Valuewhere
T: TableBuilder + TablePrimaryKey,
Source§fn from(value: &ForeignKey<i32, T>) -> Self
fn from(value: &ForeignKey<i32, T>) -> Self
Converts to this type from the input type.
Source§impl<T> From<&ForeignKey<u64, T>> for Valuewhere
T: TableBuilder + TablePrimaryKey,
impl<T> From<&ForeignKey<u64, T>> for Valuewhere
T: TableBuilder + TablePrimaryKey,
Source§fn from(value: &ForeignKeyInteger<T>) -> Self
fn from(value: &ForeignKeyInteger<T>) -> Self
Converts to this type from the input type.
Source§impl From<&PrimaryKey<String>> for Value
impl From<&PrimaryKey<String>> for Value
Source§fn from(value: &PrimaryKey<String>) -> Self
fn from(value: &PrimaryKey<String>) -> Self
Converts to this type from the input type.
Source§impl From<&PrimaryKey<Uuid>> for Value
impl From<&PrimaryKey<Uuid>> for Value
Source§fn from(value: &PrimaryKeyUuid) -> Self
fn from(value: &PrimaryKeyUuid) -> Self
Converts to this type from the input type.
Source§impl From<&PrimaryKey<i32>> for Value
impl From<&PrimaryKey<i32>> for Value
Source§fn from(value: &PrimaryKey<i32>) -> Self
fn from(value: &PrimaryKey<i32>) -> Self
Converts to this type from the input type.
Source§impl From<&PrimaryKey<u64>> for Value
impl From<&PrimaryKey<u64>> for Value
Source§fn from(value: &PrimaryKeyInteger) -> Self
fn from(value: &PrimaryKeyInteger) -> Self
Converts to this type from the input type.
Source§impl From<&TwoFactorAuth> for Value
impl From<&TwoFactorAuth> for Value
Source§fn from(value: &TwoFactorAuth) -> Self
fn from(value: &TwoFactorAuth) -> Self
Converts to this type from the input type.
Source§impl From<&VersionReq> for Value
impl From<&VersionReq> for Value
Source§fn from(value: &VersionReq) -> Self
fn from(value: &VersionReq) -> Self
Converts to this type from the input type.
Source§impl<T> From<ForeignKey<i32, T>> for Valuewhere
T: TableBuilder + TablePrimaryKey,
impl<T> From<ForeignKey<i32, T>> for Valuewhere
T: TableBuilder + TablePrimaryKey,
Source§fn from(value: ForeignKey<i32, T>) -> Self
fn from(value: ForeignKey<i32, T>) -> Self
Converts to this type from the input type.
Source§impl<T> From<ForeignKey<u64, T>> for Valuewhere
T: TableBuilder + TablePrimaryKey,
impl<T> From<ForeignKey<u64, T>> for Valuewhere
T: TableBuilder + TablePrimaryKey,
Source§fn from(value: ForeignKeyInteger<T>) -> Self
fn from(value: ForeignKeyInteger<T>) -> Self
Converts to this type from the input type.
Source§impl From<PrimaryKey<String>> for Value
impl From<PrimaryKey<String>> for Value
Source§fn from(value: PrimaryKey<String>) -> Self
fn from(value: PrimaryKey<String>) -> Self
Converts to this type from the input type.
Source§impl From<PrimaryKey<Uuid>> for Value
impl From<PrimaryKey<Uuid>> for Value
Source§fn from(value: PrimaryKeyUuid) -> Self
fn from(value: PrimaryKeyUuid) -> Self
Converts to this type from the input type.
Source§impl From<PrimaryKey<i32>> for Value
impl From<PrimaryKey<i32>> for Value
Source§fn from(value: PrimaryKey<i32>) -> Self
fn from(value: PrimaryKey<i32>) -> Self
Converts to this type from the input type.
Source§impl From<PrimaryKey<u64>> for Value
impl From<PrimaryKey<u64>> for Value
Source§fn from(value: PrimaryKeyInteger) -> Self
fn from(value: PrimaryKeyInteger) -> Self
Converts to this type from the input type.
Source§impl From<TwoFactorAuth> for Value
impl From<TwoFactorAuth> for Value
Source§fn from(value: TwoFactorAuth) -> Self
fn from(value: TwoFactorAuth) -> Self
Converts to this type from the input type.
Source§impl From<Value> for TwoFactorAuth
impl From<Value> for TwoFactorAuth
Source§impl From<Value> for VersionReq
impl From<Value> for VersionReq
Source§impl From<VersionReq> for Value
impl From<VersionReq> for Value
Source§fn from(value: VersionReq) -> Self
fn from(value: VersionReq) -> Self
Converts to this type from the input type.
Source§impl ToSql for Value
impl ToSql for Value
Source§fn to_sql(&self) -> Result<ToSqlOutput<'_>>
fn to_sql(&self) -> Result<ToSqlOutput<'_>>
Converts Rust value to SQLite value
impl Eq for Value
impl StructuralPartialEq for Value
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> 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<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.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.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request