Enum lunatic_sqlite_api::wire_format::BindKey
source · pub enum BindKey {
None,
Numeric(usize),
String(String),
}
Expand description
Struct used for binding a certain BindValue
to either
a numeric key or a named key in a prepared statement
Variants§
None
Is encoded as 0x00
Numeric(usize)
Is encoded as 0x01 and uses a u32 for length of stream which is stored as usize because the sqlite library needs usize and this will save repeated conversions
String(String)
Is encoded as 0x02 indicates that a string is used as index for the bind value
Trait Implementations§
source§impl<'de> Deserialize<'de> for BindKey
impl<'de> Deserialize<'de> for BindKey
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
Auto Trait Implementations§
impl RefUnwindSafe for BindKey
impl Send for BindKey
impl Sync for BindKey
impl Unpin for BindKey
impl UnwindSafe for BindKey
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere T: 'a,
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<T> GetSetFdFlags for T
impl<T> GetSetFdFlags for T
§fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
fn get_fd_flags(&self) -> Result<FdFlags, Error>where T: AsFilelike,
Query the “status” flags for the
self
file descriptor.