Struct async_nats::jetstream::stream::PurgeRequest
source · pub struct PurgeRequest {
pub sequence: Option<u64>,
pub filter: Option<String>,
pub keep: Option<u64>,
}
Expand description
The payload used to generate a purge request.
Fields§
§sequence: Option<u64>
Purge up to but not including sequence.
filter: Option<String>
Subject to match against messages for the purge command.
keep: Option<u64>
Number of messages to keep.
Trait Implementations§
source§impl Clone for PurgeRequest
impl Clone for PurgeRequest
source§fn clone(&self) -> PurgeRequest
fn clone(&self) -> PurgeRequest
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 PurgeRequest
impl Debug for PurgeRequest
source§impl Default for PurgeRequest
impl Default for PurgeRequest
source§fn default() -> PurgeRequest
fn default() -> PurgeRequest
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PurgeRequest
impl RefUnwindSafe for PurgeRequest
impl Send for PurgeRequest
impl Sync for PurgeRequest
impl Unpin for PurgeRequest
impl UnwindSafe for PurgeRequest
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§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
)