pub struct AsyncApiSubscriptionDefinition {
pub filter: Option<String>,
pub consume: AsyncApiMessageConsumptionPolicy,
pub foreach: Option<SubscriptionIteratorDefinition>,
}Expand description
Represents an AsyncAPI subscription
Fields§
§filter: Option<String>Gets/sets a runtime expression, if any, used to filter consumed messages
consume: AsyncApiMessageConsumptionPolicyGets/sets the subscription’s message consumption policy
foreach: Option<SubscriptionIteratorDefinition>Gets/sets the configuration of the iterator, if any, for processing each consumed item
Trait Implementations§
Source§impl Clone for AsyncApiSubscriptionDefinition
impl Clone for AsyncApiSubscriptionDefinition
Source§fn clone(&self) -> AsyncApiSubscriptionDefinition
fn clone(&self) -> AsyncApiSubscriptionDefinition
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 Default for AsyncApiSubscriptionDefinition
impl Default for AsyncApiSubscriptionDefinition
Source§fn default() -> AsyncApiSubscriptionDefinition
fn default() -> AsyncApiSubscriptionDefinition
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AsyncApiSubscriptionDefinition
impl<'de> Deserialize<'de> for AsyncApiSubscriptionDefinition
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 AsyncApiSubscriptionDefinition
impl PartialEq for AsyncApiSubscriptionDefinition
Source§fn eq(&self, other: &AsyncApiSubscriptionDefinition) -> bool
fn eq(&self, other: &AsyncApiSubscriptionDefinition) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AsyncApiSubscriptionDefinition
Auto Trait Implementations§
impl Freeze for AsyncApiSubscriptionDefinition
impl RefUnwindSafe for AsyncApiSubscriptionDefinition
impl Send for AsyncApiSubscriptionDefinition
impl Sync for AsyncApiSubscriptionDefinition
impl Unpin for AsyncApiSubscriptionDefinition
impl UnsafeUnpin for AsyncApiSubscriptionDefinition
impl UnwindSafe for AsyncApiSubscriptionDefinition
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