pub struct DeleteMessage { /* private fields */ }Expand description
Builder for Messages::delete; .await it to soft-delete the message and
receive the resulting Message (action message.delete).
Implementations§
Source§impl DeleteMessage
impl DeleteMessage
Sourcepub fn description(self, description: impl Into<String>) -> Self
pub fn description(self, description: impl Into<String>) -> Self
Attaches an optional description of the delete operation.
Sourcepub fn metadata(self, metadata: BTreeMap<String, String>) -> Self
pub fn metadata(self, metadata: BTreeMap<String, String>) -> Self
Attaches optional string metadata describing the delete operation.
Sourcepub fn idempotency_key(self, key: impl Into<String>) -> Self
pub fn idempotency_key(self, key: impl Into<String>) -> Self
Supplies an idempotency key, making the delete safe to retry (ADR-0006).
Trait Implementations§
Source§impl Clone for DeleteMessage
impl Clone for DeleteMessage
Source§fn clone(&self) -> DeleteMessage
fn clone(&self) -> DeleteMessage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DeleteMessage
impl Debug for DeleteMessage
Source§impl IntoFuture for DeleteMessage
impl IntoFuture for DeleteMessage
Source§type IntoFuture = Pin<Box<dyn Future<Output = <DeleteMessage as IntoFuture>::Output> + Send>>
type IntoFuture = Pin<Box<dyn Future<Output = <DeleteMessage as IntoFuture>::Output> + Send>>
Which kind of future are we turning this into?
Source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for DeleteMessage
impl !UnwindSafe for DeleteMessage
impl Freeze for DeleteMessage
impl Send for DeleteMessage
impl Sync for DeleteMessage
impl Unpin for DeleteMessage
impl UnsafeUnpin for DeleteMessage
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