pub enum Rows {
Count(u64),
Value(Value),
Stream(ValueStream),
}Variants§
Count(u64)
Number of rows impacted by the operation
Value(Value)
A single value
Stream(ValueStream)
Operation result, as a stream of rows
Implementations§
Source§impl Rows
impl Rows
pub fn value_stream(values: impl Into<ValueStream>) -> Self
pub fn is_count(&self) -> bool
pub async fn dup(&mut self) -> Result<Self>
pub fn try_clone(&self) -> Option<Self>
pub fn into_count(self) -> u64
pub async fn collect_as_value(self) -> Result<Value>
pub fn into_value_stream(self) -> ValueStream
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Rows
impl !RefUnwindSafe for Rows
impl Send for Rows
impl !Sync for Rows
impl Unpin for Rows
impl !UnwindSafe for Rows
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