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 matching optional selectors. The namespace field is the caller’s namespace; namespace_selector narrows the selection and must be authorised by the server before any engine call.
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: String§workflow_type: Option<String>§status: Option<i32>§namespace_selector: Option<String>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) -> WorkflowStatus
pub fn status(&self) -> WorkflowStatus
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: WorkflowStatus)
pub fn set_status(&mut self, value: WorkflowStatus)
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 Hash for FilteredSubscription
impl Hash 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§impl Serialize for FilteredSubscription
impl Serialize for FilteredSubscription
impl StructuralPartialEq for FilteredSubscription
Auto Trait Implementations§
impl Freeze for FilteredSubscription
impl RefUnwindSafe for FilteredSubscription
impl Send for FilteredSubscription
impl Sync for FilteredSubscription
impl Unpin for FilteredSubscription
impl UnsafeUnpin for FilteredSubscription
impl UnwindSafe for FilteredSubscription
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request