pub enum Constant {
Null,
String(LitStr),
Integer(String),
Float(String),
Boolean(bool),
Uuid(Uuid),
Hex(Vec<u8>),
Blob(Vec<u8>),
}
Variants§
Null
String(LitStr)
Integer(String)
Float(String)
Boolean(bool)
Uuid(Uuid)
Hex(Vec<u8>)
Blob(Vec<u8>)
Implementations§
Trait Implementations§
Source§impl<'a> CustomToTokens<'a> for Constant
impl<'a> CustomToTokens<'a> for Constant
Source§impl From<Constant> for StatementOptValue
impl From<Constant> for StatementOptValue
Source§fn from(original: Constant) -> StatementOptValue
fn from(original: Constant) -> StatementOptValue
Converts to this type from the input type.
Source§impl Ord for Constant
impl Ord for Constant
Source§impl PartialOrd for Constant
impl PartialOrd for Constant
Source§impl ToTokens for Constant
impl ToTokens for Constant
Source§fn to_token_stream(&self) -> TokenStream
fn to_token_stream(&self) -> TokenStream
Source§fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
impl Eq for Constant
impl StructuralPartialEq for Constant
Auto Trait Implementations§
impl Freeze for Constant
impl RefUnwindSafe for Constant
impl Send for Constant
impl Sync for Constant
impl Unpin for Constant
impl UnwindSafe for Constant
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