pub struct UpdateArgs {
pub filter: Option<TableFilter>,
pub set: HashMap<String, InputValue>,
pub returning: Vec<String>,
}Expand description
Arguments for a GraphQL update mutation.
Fields§
§filter: Option<TableFilter>Filter to select rows to update
set: HashMap<String, InputValue>Values to set
returning: Vec<String>Fields to return
Implementations§
Source§impl UpdateArgs
impl UpdateArgs
Sourcepub fn with_filter(self, filter: TableFilter) -> Self
pub fn with_filter(self, filter: TableFilter) -> Self
Set the filter.
Sourcepub fn with_set(self, set: HashMap<String, InputValue>) -> Self
pub fn with_set(self, set: HashMap<String, InputValue>) -> Self
Set the values to update.
Sourcepub fn with_returning(self, returning: Vec<String>) -> Self
pub fn with_returning(self, returning: Vec<String>) -> Self
Set returning fields.
Sourcepub fn has_filter(&self) -> bool
pub fn has_filter(&self) -> bool
Check if filter is specified.
Sourcepub fn to_json_bytes(&self) -> Option<Bytes>
pub fn to_json_bytes(&self) -> Option<Bytes>
Convert set values to JSON bytes.
Sourcepub fn column_names(&self) -> Vec<String>
pub fn column_names(&self) -> Vec<String>
Get column names being updated.
Trait Implementations§
Source§impl Clone for UpdateArgs
impl Clone for UpdateArgs
Source§fn clone(&self) -> UpdateArgs
fn clone(&self) -> UpdateArgs
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UpdateArgs
impl Debug for UpdateArgs
Source§impl Default for UpdateArgs
impl Default for UpdateArgs
Source§fn default() -> UpdateArgs
fn default() -> UpdateArgs
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for UpdateArgs
impl RefUnwindSafe for UpdateArgs
impl Send for UpdateArgs
impl Sync for UpdateArgs
impl Unpin for UpdateArgs
impl UnwindSafe for UpdateArgs
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> 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