pub struct UpdateOperation {
pub operator: UpdateOperator,
pub fields: Array,
}Expand description
An update operator with its fields (field => value).
PHP: Utopia\Query\Builder\MongoDB\UpdateOperation.
Fields§
§operator: UpdateOperatorThe operator.
fields: ArrayField => value (or modifier document).
Implementations§
Source§impl UpdateOperation
impl UpdateOperation
Sourcepub fn new(operator: UpdateOperator, fields: Array) -> Self
pub fn new(operator: UpdateOperator, fields: Array) -> Self
An operator with its fields.
PHP: new UpdateOperation($operator, $fields).
Trait Implementations§
Source§impl Clone for UpdateOperation
impl Clone for UpdateOperation
Source§impl Debug for UpdateOperation
impl Debug for UpdateOperation
Source§impl PartialEq for UpdateOperation
impl PartialEq for UpdateOperation
impl StructuralPartialEq for UpdateOperation
Auto Trait Implementations§
impl Forget for UpdateOperation
impl Freeze for UpdateOperation
impl Move for UpdateOperation
impl RefUnwindSafe for UpdateOperationwhere
Atomic<usize>: RefUnwindSafe,
Atomic<*mut ()>: RefUnwindSafe,
OnceLock<Index>: RefUnwindSafe,
Atomic<u8>: RefUnwindSafe,
impl Send for UpdateOperation
impl Sync for UpdateOperation
impl Unpin for UpdateOperation
impl UnsafeUnpin for UpdateOperationwhere
*const ArcInner<Repr<Object>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Repr<Object>>>: UnsafeUnpin,
impl UnwindSafe for UpdateOperation
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