pub enum UpdateOperator {
Show 13 variants
Set,
Push,
Pull,
PullAll,
AddToSet,
Increment,
Multiply,
Unset,
Rename,
Pop,
Min,
Max,
CurrentDate,
}Expand description
An update operator.
PHP: Utopia\Query\Builder\MongoDB\UpdateOperator.
Variants§
Set
$set.
Push
$push.
Pull
$pull.
PullAll
$pullAll.
AddToSet
$addToSet.
Increment
$inc.
Multiply
$mul.
Unset
$unset.
Rename
$rename.
Pop
$pop.
Min
$min.
Max
$max.
CurrentDate
$currentDate.
Implementations§
Source§impl UpdateOperator
impl UpdateOperator
Sourcepub const CASES: &'static [UpdateOperator]
pub const CASES: &'static [UpdateOperator]
Every case, in declaration order.
PHP: cases().
Sourcepub const PHP_CLASS: &'static str = "Utopia\\Query\\Builder\\MongoDB\\UpdateOperator"
pub const PHP_CLASS: &'static str = "Utopia\\Query\\Builder\\MongoDB\\UpdateOperator"
The PHP class of this enumeration.
Sourcepub fn try_from_value(value: &str) -> Option<Self>
pub fn try_from_value(value: &str) -> Option<Self>
The case with backing value value, if any.
PHP: tryFrom().
Sourcepub fn from_value(value: &str) -> Result<Self, Error>
pub fn from_value(value: &str) -> Result<Self, Error>
The case with backing value value.
PHP: from(), which throws ValueError (Error::InvalidValue) with the same message.
Trait Implementations§
Source§impl Clone for UpdateOperator
impl Clone for UpdateOperator
impl Copy for UpdateOperator
Source§impl Debug for UpdateOperator
impl Debug for UpdateOperator
Source§impl Display for UpdateOperator
impl Display for UpdateOperator
impl Eq for UpdateOperator
Source§impl Hash for UpdateOperator
impl Hash for UpdateOperator
Source§impl PartialEq for UpdateOperator
impl PartialEq for UpdateOperator
impl StructuralPartialEq for UpdateOperator
Auto Trait Implementations§
impl Forget for UpdateOperator
impl Freeze for UpdateOperator
impl Move for UpdateOperator
impl RefUnwindSafe for UpdateOperator
impl Send for UpdateOperator
impl Sync for UpdateOperator
impl Unpin for UpdateOperator
impl UnsafeUnpin for UpdateOperator
impl UnwindSafe for UpdateOperator
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.