pub enum AsyncApiMessageConsumptionPolicy {
Amount {
amount: u32,
},
For {
for_: OneOfDurationOrIso8601Expression,
},
While {
while_: String,
},
Until {
until: String,
},
}Expand description
Represents an AsyncAPI message consumption policy
Variants§
Amount
Consume a specific amount of messages
For
Consume for a specified duration
Fields
§
for_: OneOfDurationOrIso8601ExpressionThe duration to consume messages for
While
Consume while a condition is true
Until
Consume until a condition is true
Trait Implementations§
Source§impl Clone for AsyncApiMessageConsumptionPolicy
impl Clone for AsyncApiMessageConsumptionPolicy
Source§fn clone(&self) -> AsyncApiMessageConsumptionPolicy
fn clone(&self) -> AsyncApiMessageConsumptionPolicy
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<'de> Deserialize<'de> for AsyncApiMessageConsumptionPolicy
impl<'de> Deserialize<'de> for AsyncApiMessageConsumptionPolicy
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
Source§impl PartialEq for AsyncApiMessageConsumptionPolicy
impl PartialEq for AsyncApiMessageConsumptionPolicy
Source§fn eq(&self, other: &AsyncApiMessageConsumptionPolicy) -> bool
fn eq(&self, other: &AsyncApiMessageConsumptionPolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for AsyncApiMessageConsumptionPolicy
impl StructuralPartialEq for AsyncApiMessageConsumptionPolicy
Auto Trait Implementations§
impl Freeze for AsyncApiMessageConsumptionPolicy
impl RefUnwindSafe for AsyncApiMessageConsumptionPolicy
impl Send for AsyncApiMessageConsumptionPolicy
impl Sync for AsyncApiMessageConsumptionPolicy
impl Unpin for AsyncApiMessageConsumptionPolicy
impl UnsafeUnpin for AsyncApiMessageConsumptionPolicy
impl UnwindSafe for AsyncApiMessageConsumptionPolicy
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