pub enum QueryValue<'a, Val: SerializeRow, M: BaseModel> {
Owned(Val),
Ref(&'a Val),
PrimaryKey(M::PrimaryKey),
PartitionKey(M::PartitionKey),
Model(&'a M),
ModelOwned(M),
Empty,
}Variants§
Owned(Val)
Ref(&'a Val)
PrimaryKey(M::PrimaryKey)
PartitionKey(M::PartitionKey)
Model(&'a M)
ModelOwned(M)
Empty
Trait Implementations§
Source§impl<'a, Val: SerializeRow, M: BaseModel> Default for QueryValue<'a, Val, M>
impl<'a, Val: SerializeRow, M: BaseModel> Default for QueryValue<'a, Val, M>
Source§fn default() -> QueryValue<'a, Val, M>
fn default() -> QueryValue<'a, Val, M>
Returns the “default value” for a type. Read more
Source§impl<Val: SerializeRow, M: BaseModel> SerializeRow for QueryValue<'_, Val, M>
impl<Val: SerializeRow, M: BaseModel> SerializeRow for QueryValue<'_, Val, M>
Source§fn serialize(
&self,
ctx: &RowSerializationContext<'_>,
writer: &mut RowWriter<'_>,
) -> Result<(), SerializationError>
fn serialize( &self, ctx: &RowSerializationContext<'_>, writer: &mut RowWriter<'_>, ) -> Result<(), SerializationError>
Serializes the row according to the information in the given context. Read more
Auto Trait Implementations§
impl<'a, Val, M> Freeze for QueryValue<'a, Val, M>where
Val: Freeze,
<M as BaseModel>::PrimaryKey: Freeze,
<M as BaseModel>::PartitionKey: Freeze,
M: Freeze,
impl<'a, Val, M> RefUnwindSafe for QueryValue<'a, Val, M>where
Val: RefUnwindSafe,
<M as BaseModel>::PrimaryKey: RefUnwindSafe,
<M as BaseModel>::PartitionKey: RefUnwindSafe,
M: RefUnwindSafe,
impl<'a, Val, M> Send for QueryValue<'a, Val, M>
impl<'a, Val, M> Sync for QueryValue<'a, Val, M>
impl<'a, Val, M> Unpin for QueryValue<'a, Val, M>where
Val: Unpin,
<M as BaseModel>::PrimaryKey: Unpin,
<M as BaseModel>::PartitionKey: Unpin,
M: Unpin,
impl<'a, Val, M> UnsafeUnpin for QueryValue<'a, Val, M>where
Val: UnsafeUnpin,
<M as BaseModel>::PrimaryKey: UnsafeUnpin,
<M as BaseModel>::PartitionKey: UnsafeUnpin,
M: UnsafeUnpin,
impl<'a, Val, M> UnwindSafe for QueryValue<'a, Val, M>where
Val: UnwindSafe + RefUnwindSafe,
<M as BaseModel>::PrimaryKey: UnwindSafe,
<M as BaseModel>::PartitionKey: UnwindSafe,
M: UnwindSafe + RefUnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> ErasedDestructor for Twhere
T: 'static,
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> 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