pub struct DeliveryOptions {
pub class: DeliveryClass,
pub timeout: Option<Duration>,
pub retry_budget: Option<u32>,
pub ordering_key: Option<String>,
pub path_constraints: Option<DeliveryPathConstraints>,
}Fields§
§class: DeliveryClass§timeout: Option<Duration>§retry_budget: Option<u32>§ordering_key: Option<String>§path_constraints: Option<DeliveryPathConstraints>Implementations§
Source§impl DeliveryOptions
impl DeliveryOptions
pub fn new(class: DeliveryClass) -> Self
pub fn with_ordering_key(self, ordering_key: impl Into<String>) -> Self
pub fn with_timeout(self, timeout: Duration) -> Self
pub fn with_retry_budget(self, retry_budget: u32) -> Self
pub fn with_path_constraints( self, path_constraints: DeliveryPathConstraints, ) -> Self
pub fn validate(&self) -> Result<(), String>
Trait Implementations§
Source§impl Clone for DeliveryOptions
impl Clone for DeliveryOptions
Source§fn clone(&self) -> DeliveryOptions
fn clone(&self) -> DeliveryOptions
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 DeliveryOptions
impl Debug for DeliveryOptions
Source§impl<'de> Deserialize<'de> for DeliveryOptions
impl<'de> Deserialize<'de> for DeliveryOptions
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
impl Eq for DeliveryOptions
Source§impl PartialEq for DeliveryOptions
impl PartialEq for DeliveryOptions
Source§impl Serialize for DeliveryOptions
impl Serialize for DeliveryOptions
impl StructuralPartialEq for DeliveryOptions
Auto Trait Implementations§
impl Freeze for DeliveryOptions
impl RefUnwindSafe for DeliveryOptions
impl Send for DeliveryOptions
impl Sync for DeliveryOptions
impl Unpin for DeliveryOptions
impl UnsafeUnpin for DeliveryOptions
impl UnwindSafe for DeliveryOptions
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