pub struct Update {
pub begin_batch: Option<BeginBatch>,
pub table_name: FQName,
pub using_ttl: Option<TtlTimestamp>,
pub assignments: Vec<AssignmentElement>,
pub where_clause: Vec<RelationElement>,
pub if_clause: Vec<RelationElement>,
pub if_exists: bool,
}
Expand description
data for Update
statements
Fields§
§begin_batch: Option<BeginBatch>
if present then statement starts with BEGIN BATCH
table_name: FQName
the table name to update
using_ttl: Option<TtlTimestamp>
if present then the TTL Timestamp for the update
assignments: Vec<AssignmentElement>
the column assignments for the update.
where_clause: Vec<RelationElement>
the where clause
if_clause: Vec<RelationElement>
if present a list of key,values for the IF
clause
if_exists: bool
if true and if_clause
is NONE then IF EXISTS
is added to the statement
Trait Implementations§
impl StructuralPartialEq for Update
Auto Trait Implementations§
impl Freeze for Update
impl RefUnwindSafe for Update
impl Send for Update
impl Sync for Update
impl Unpin for Update
impl UnwindSafe for Update
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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