pub struct IngressBuilder { /* private fields */ }Expand description
Temporary struct for accumulating ingress configuration before finalizing it
into a Ingress. This builder intends to apply validation only at
meaningful states of the configuration, as opposed to every intermediary
state.
Implementations§
Source§impl IngressBuilder
impl IngressBuilder
Sourcepub fn with_name(self, name: impl AsRef<str>) -> Self
pub fn with_name(self, name: impl AsRef<str>) -> Self
Recreates this ingress definition builder with the given name.
Sourcepub fn with_exchange(self, exchange: Exchange) -> Self
pub fn with_exchange(self, exchange: Exchange) -> Self
Recreates this ingress definition builder with the given exchange.
Sourcepub fn with_queue(self, queue: Queue) -> Self
pub fn with_queue(self, queue: Queue) -> Self
Recreates this ingress definition builder with the given queue.
Sourcepub fn with_queue_named(self, queue: impl AsRef<str>) -> Self
pub fn with_queue_named(self, queue: impl AsRef<str>) -> Self
Recreates this ingress definition builder with a queue with the given name.
Sourcepub fn with_durable(self, durable: bool) -> Self
pub fn with_durable(self, durable: bool) -> Self
Recreates this ingress definition builder with the given durable flag.
Sourcepub fn with_exclusive(self, exclusive: bool) -> Self
pub fn with_exclusive(self, exclusive: bool) -> Self
Recreates this ingress definition builder with the given exclusive flag.
Sourcepub fn with_auto_delete(self, auto_delete: bool) -> Self
pub fn with_auto_delete(self, auto_delete: bool) -> Self
Recreates this ingress definition builder with the given auto_delete flag.
Sourcepub fn with_batch_size(self, batch_size: NonZeroUsize) -> Self
pub fn with_batch_size(self, batch_size: NonZeroUsize) -> Self
Recreates this ingress definition builder with the given batch size.
Sourcepub fn with_batch_timeout(self, batch_timeout: Duration) -> Self
pub fn with_batch_timeout(self, batch_timeout: Duration) -> Self
Recreates this ingress definition builder with the given batch timeout.
Sourcepub fn with_prefetch_count(self, prefetch_count: Option<NonZeroU16>) -> Self
pub fn with_prefetch_count(self, prefetch_count: Option<NonZeroU16>) -> Self
Recreates this ingress definition builder with the given prefetch count.
Sourcepub fn with_acking_behavior(self, acking_behavior: AckingBehavior) -> Self
pub fn with_acking_behavior(self, acking_behavior: AckingBehavior) -> Self
Recreates this ingress definition builder with the given acking behavior.
Sourcepub fn with_gibberish_behavior(
self,
gibberish_behavior: FinalizationKind,
) -> Self
pub fn with_gibberish_behavior( self, gibberish_behavior: FinalizationKind, ) -> Self
Recreates this ingress definition builder with the given gibberish behavior.
Sourcepub fn with_binding_key(self, binding_key: impl Into<String>) -> Self
pub fn with_binding_key(self, binding_key: impl Into<String>) -> Self
Recreates this ingress definition builder, adding the given binding key to the ones already included.
Sourcepub fn with_replaced_binding_keys(self, binding_keys: HashSet<String>) -> Self
pub fn with_replaced_binding_keys(self, binding_keys: HashSet<String>) -> Self
Recreates this ingress definition builder with the given binding keys.
This will replace any previously added binding keys.
Sourcepub fn with_binding_header<V>(self, key: impl Into<String>, value: V) -> Self
pub fn with_binding_header<V>(self, key: impl Into<String>, value: V) -> Self
Recreates this ingress definition builder, adding the given binding header to the ones already included.
Sourcepub fn with_replaced_binding_headers(
self,
binding_headers: HashMap<String, Header>,
) -> Self
pub fn with_replaced_binding_headers( self, binding_headers: HashMap<String, Header>, ) -> Self
Recreates this ingress definition builder with the given binding headers.
This will replace any previously added binding headers.
Sourcepub fn with_matching_all_headers(self) -> Self
pub fn with_matching_all_headers(self) -> Self
Recreates this ingress definition builder with the headers matching
behavior set to all (all headers must match).
Sourcepub fn with_matching_any_headers(self) -> Self
pub fn with_matching_any_headers(self) -> Self
Recreates this ingress definition builder with the headers matching
behavior set to any (at least one header must match).
Sourcepub fn with_headers_behavior(
self,
headers_behavior: HeadersMatchingBehavior,
) -> Self
pub fn with_headers_behavior( self, headers_behavior: HeadersMatchingBehavior, ) -> Self
Recreates this ingress definition builder with the given headers behavior.