pub enum FirestoreFieldTransformType {
SetToServerValue(FirestoreTransformServerValue),
Increment(FirestoreValue),
Maximum(FirestoreValue),
Minimum(FirestoreValue),
AppendMissingElements(Vec<FirestoreValue>),
RemoveAllFromArray(Vec<FirestoreValue>),
}Expand description
Defines the specific type of transformation to apply to a field.
Variants§
SetToServerValue(FirestoreTransformServerValue)
Sets the field to a server-generated value, such as the request timestamp.
Increment(FirestoreValue)
Atomically increments the field’s numeric value by the given FirestoreValue (which must be an integer or double).
Maximum(FirestoreValue)
Atomically sets the field to the maximum of its current value and the given FirestoreValue.
Minimum(FirestoreValue)
Atomically sets the field to the minimum of its current value and the given FirestoreValue.
AppendMissingElements(Vec<FirestoreValue>)
Appends the given elements to an array field, but only if they are not already present.
The Vec<FirestoreValue> contains the elements to append.
RemoveAllFromArray(Vec<FirestoreValue>)
Removes all instances of the given elements from an array field.
The Vec<FirestoreValue> contains the elements to remove.
Trait Implementations§
Source§impl Clone for FirestoreFieldTransformType
impl Clone for FirestoreFieldTransformType
Source§impl Debug for FirestoreFieldTransformType
impl Debug for FirestoreFieldTransformType
impl StructuralPartialEq for FirestoreFieldTransformType
Source§impl TryInto<TransformType> for FirestoreFieldTransformType
impl TryInto<TransformType> for FirestoreFieldTransformType
Source§type Error = FirestoreError
type Error = FirestoreError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for FirestoreFieldTransformType
impl RefUnwindSafe for FirestoreFieldTransformType
impl Send for FirestoreFieldTransformType
impl Sync for FirestoreFieldTransformType
impl Unpin for FirestoreFieldTransformType
impl UnsafeUnpin for FirestoreFieldTransformType
impl UnwindSafe for FirestoreFieldTransformType
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
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request