pub struct PublishOptions {
pub mandatory: bool,
pub immediate: bool,
pub expiration: Option<String>,
pub priority: Option<u8>,
pub masstransit: Option<MassTransitOptions>,
}Expand description
Publish options builder
Fields§
§mandatory: bool§immediate: bool§expiration: Option<String>§priority: Option<u8>§masstransit: Option<MassTransitOptions>Enable MassTransit format conversion
Implementations§
Source§impl PublishOptions
impl PublishOptions
pub fn new() -> Self
pub fn mandatory(self) -> Self
pub fn priority(self, priority: u8) -> Self
pub fn with_expiration(self, expiration: impl Into<String>) -> Self
pub fn with_priority(self, priority: u8) -> Self
Sourcepub fn with_masstransit(self, message_type: impl Into<String>) -> Self
pub fn with_masstransit(self, message_type: impl Into<String>) -> Self
Enable MassTransit format conversion Message type can be in format “Namespace:TypeName” or “urn:message:Namespace:TypeName”
Sourcepub fn with_masstransit_options(self, options: MassTransitOptions) -> Self
pub fn with_masstransit_options(self, options: MassTransitOptions) -> Self
Enable MassTransit format with full options
Trait Implementations§
Source§impl Clone for PublishOptions
impl Clone for PublishOptions
Source§fn clone(&self) -> PublishOptions
fn clone(&self) -> PublishOptions
Returns a duplicate 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 PublishOptions
impl Debug for PublishOptions
Source§impl Default for PublishOptions
impl Default for PublishOptions
Source§fn default() -> PublishOptions
fn default() -> PublishOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PublishOptions
impl RefUnwindSafe for PublishOptions
impl Send for PublishOptions
impl Sync for PublishOptions
impl Unpin for PublishOptions
impl UnwindSafe for PublishOptions
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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