#[non_exhaustive]pub struct MapRemoveResult {
pub offset: u64,
pub epoch: String,
pub suppressed: bool,
pub suppress_reason: String,
}Expand description
MapRemoveResult is the result of a map remove call.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.offset: u64The offset in the channel stream.
epoch: StringThe epoch of the channel stream.
suppressed: boolTrue if the removal was not applied, see suppress_reason.
suppress_reason: Stringsuppress_reason explains why the removal was suppressed, for example
“idempotency” or “key_not_found”.
Implementations§
Source§impl MapRemoveResult
impl MapRemoveResult
Sourcepub fn position(&self) -> StreamPosition
pub fn position(&self) -> StreamPosition
Where the removal went in the map channel’s stream: as
MapReadStreamRequest’s since_offset
and since_epoch, it reads the changes made after it.
Trait Implementations§
Source§impl Clone for MapRemoveResult
impl Clone for MapRemoveResult
Source§impl Debug for MapRemoveResult
impl Debug for MapRemoveResult
Source§impl Default for MapRemoveResult
impl Default for MapRemoveResult
Source§impl<'de> Deserialize<'de> for MapRemoveResult
impl<'de> Deserialize<'de> for MapRemoveResult
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for MapRemoveResult
impl RefUnwindSafe for MapRemoveResult
impl Send for MapRemoveResult
impl Sync for MapRemoveResult
impl Unpin for MapRemoveResult
impl UnsafeUnpin for MapRemoveResult
impl UnwindSafe for MapRemoveResult
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