pub enum Values {
Unnamed(usize, Vec<TypedValue>),
Named(Vec<Variable>, Vec<TypedValue>),
}Variants§
Unnamed(usize, Vec<TypedValue>)
Like “VALUES (0, 1), (2, 3), …”. The vector must be of a length that is a multiple of the given size.
Named(Vec<Variable>, Vec<TypedValue>)
Like “SELECT 0 AS x, SELECT 0 AS y WHERE 0 UNION ALL VALUES (0, 1), (2, 3), …”. The vector of values must be of a length that is a multiple of the length of the vector of names.
Trait Implementations§
Source§impl QueryFragment for Values
impl QueryFragment for Values
fn push_sql(&self, out: &mut dyn QueryBuilder) -> BuildQueryResult
Auto Trait Implementations§
impl !Send for Values
impl !Sync for Values
impl Freeze for Values
impl RefUnwindSafe for Values
impl Unpin for Values
impl UnsafeUnpin for Values
impl UnwindSafe for Values
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more