pub struct ChannelSelector {
pub filter: Option<ChannelFilter>,
pub status: Option<ChannelStatus>,
pub safe_address: Option<ChainAddress>,
}Expand description
Selects Channel records by optional channel filter, status, and safe contract address.
Use ChannelSelector::default to address all channels when a method supports unfiltered access. Query methods
that could otherwise return large result sets may require at least one filter.
Fields§
§filter: Option<ChannelFilter>Filter for the selected channels.
status: Option<ChannelStatus>Optional status filter for the selected channels.
safe_address: Option<ChainAddress>Optional safe contract address; restricts to channels where the source belongs to this safe.
Implementations§
Source§impl ChannelSelector
impl ChannelSelector
Sourcepub fn matches_all(&self) -> bool
pub fn matches_all(&self) -> bool
Returns true if the selector matches any channel.
Trait Implementations§
Source§impl Clone for ChannelSelector
impl Clone for ChannelSelector
Source§fn clone(&self) -> ChannelSelector
fn clone(&self) -> ChannelSelector
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 Debug for ChannelSelector
impl Debug for ChannelSelector
Source§impl Default for ChannelSelector
impl Default for ChannelSelector
Source§fn default() -> ChannelSelector
fn default() -> ChannelSelector
Returns the “default value” for a type. Read more
Source§impl From<ChannelSelector> for ChannelsVariables
impl From<ChannelSelector> for ChannelsVariables
Source§fn from(value: ChannelSelector) -> Self
fn from(value: ChannelSelector) -> Self
Converts to this type from the input type.
Source§impl From<ChannelSelector> for ChannelStatsVariables
impl From<ChannelSelector> for ChannelStatsVariables
Source§fn from(value: ChannelSelector) -> Self
fn from(value: ChannelSelector) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ChannelSelector
impl RefUnwindSafe for ChannelSelector
impl Send for ChannelSelector
impl Sync for ChannelSelector
impl Unpin for ChannelSelector
impl UnsafeUnpin for ChannelSelector
impl UnwindSafe for ChannelSelector
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more