Struct nats::jetstream::PublishOptions
source · [−]pub struct PublishOptions {
pub timeout: Option<Duration>,
pub id: Option<String>,
pub expected_last_msg_id: Option<String>,
pub expected_stream: Option<String>,
pub expected_last_sequence: Option<u64>,
pub expected_last_subject_sequence: Option<u64>,
}
Expand description
Options for publishing
Fields
timeout: Option<Duration>
Duration to wait before timing out
id: Option<String>
Message id
expected_last_msg_id: Option<String>
Expected last message id
expected_stream: Option<String>
Expected stream name
expected_last_sequence: Option<u64>
Expected last sequence
expected_last_subject_sequence: Option<u64>
Expected last subject sequence
Trait Implementations
sourceimpl Clone for PublishOptions
impl Clone for PublishOptions
sourcefn clone(&self) -> PublishOptions
fn clone(&self) -> PublishOptions
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for PublishOptions
impl Debug for PublishOptions
sourceimpl Default for PublishOptions
impl Default for PublishOptions
sourcefn default() -> PublishOptions
fn default() -> PublishOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for PublishOptions
impl Send for PublishOptions
impl Sync for PublishOptions
impl Unpin for PublishOptions
impl UnwindSafe for PublishOptions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more