Enum substreams::pb::substreams::module::kind_store::UpdatePolicy
source · #[repr(i32)]pub enum UpdatePolicy {
Unset = 0,
Set = 1,
SetIfNotExists = 2,
Add = 3,
Min = 4,
Max = 5,
Append = 6,
}
Variants§
Unset = 0
Set = 1
Provides a store where you can set()
keys, and the latest key wins
SetIfNotExists = 2
Provides a store where you can set_if_not_exists()
keys, and the first key wins
Add = 3
Provides a store where you can add_*()
keys, where two stores merge by summing its values.
Min = 4
Provides a store where you can min_*()
keys, where two stores merge by leaving the minimum value.
Max = 5
Provides a store where you can max_*()
keys, where two stores merge by leaving the maximum value.
Append = 6
Provides a store where you can append()
keys, where two stores merge by concatenating the bytes in order.
Implementations§
Trait Implementations§
source§impl Clone for UpdatePolicy
impl Clone for UpdatePolicy
source§fn clone(&self) -> UpdatePolicy
fn clone(&self) -> UpdatePolicy
Returns a copy 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 UpdatePolicy
impl Debug for UpdatePolicy
source§impl Default for UpdatePolicy
impl Default for UpdatePolicy
source§fn default() -> UpdatePolicy
fn default() -> UpdatePolicy
Returns the “default value” for a type. Read more
source§impl From<UpdatePolicy> for i32
impl From<UpdatePolicy> for i32
source§fn from(value: UpdatePolicy) -> i32
fn from(value: UpdatePolicy) -> i32
Converts to this type from the input type.
source§impl Hash for UpdatePolicy
impl Hash for UpdatePolicy
source§impl Ord for UpdatePolicy
impl Ord for UpdatePolicy
source§fn cmp(&self, other: &UpdatePolicy) -> Ordering
fn cmp(&self, other: &UpdatePolicy) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for UpdatePolicy
impl PartialEq for UpdatePolicy
source§fn eq(&self, other: &UpdatePolicy) -> bool
fn eq(&self, other: &UpdatePolicy) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for UpdatePolicy
impl PartialOrd for UpdatePolicy
source§fn partial_cmp(&self, other: &UpdatePolicy) -> Option<Ordering>
fn partial_cmp(&self, other: &UpdatePolicy) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for UpdatePolicy
impl Eq for UpdatePolicy
impl StructuralPartialEq for UpdatePolicy
Auto Trait Implementations§
impl Freeze for UpdatePolicy
impl RefUnwindSafe for UpdatePolicy
impl Send for UpdatePolicy
impl Sync for UpdatePolicy
impl Unpin for UpdatePolicy
impl UnwindSafe for UpdatePolicy
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)