pub struct FilteredSubscription {
pub namespace: String,
pub workflow_type: Option<String>,
pub status: Option<i32>,
pub namespace_selector: Option<String>,
}Expand description
Subscribe to events selected by optional workflow metadata.
Filtered streams carry NO resume cursor and are live-only by design: per-workflow seq is the only ordering that exists, so resumption is not representable here. Disconnection after at least one delivered event surfaces Unavailable client-side — never a silent gapped reattach.
Fields§
§namespace: StringCaller namespace used for adapter-boundary authorisation.
workflow_type: Option<String>Optional workflow type selector.
status: Option<i32>Optional workflow status selector.
namespace_selector: Option<String>Optional namespace selector distinct from the caller namespace.
Implementations§
Source§impl FilteredSubscription
impl FilteredSubscription
Sourcepub fn workflow_type(&self) -> &str
pub fn workflow_type(&self) -> &str
Returns the value of workflow_type, or the default value if workflow_type is unset.
Sourcepub fn status(&self) -> ProtoWorkflowStatus
pub fn status(&self) -> ProtoWorkflowStatus
Returns the enum value of status, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_status(&mut self, value: ProtoWorkflowStatus)
pub fn set_status(&mut self, value: ProtoWorkflowStatus)
Sets status to the provided enum value.
Sourcepub fn namespace_selector(&self) -> &str
pub fn namespace_selector(&self) -> &str
Returns the value of namespace_selector, or the default value if namespace_selector is unset.
Trait Implementations§
Source§impl Clone for FilteredSubscription
impl Clone for FilteredSubscription
Source§fn clone(&self) -> FilteredSubscription
fn clone(&self) -> FilteredSubscription
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for FilteredSubscription
impl Debug for FilteredSubscription
Source§impl Default for FilteredSubscription
impl Default for FilteredSubscription
Source§impl<'de> Deserialize<'de> for FilteredSubscription
impl<'de> Deserialize<'de> for FilteredSubscription
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>,
impl Eq for FilteredSubscription
Source§impl Message for FilteredSubscription
impl Message for FilteredSubscription
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for FilteredSubscription
impl PartialEq for FilteredSubscription
Source§fn eq(&self, other: &FilteredSubscription) -> bool
fn eq(&self, other: &FilteredSubscription) -> bool
self and other values to be equal, and is used by ==.