pub struct Filter {
pub account_include: Vec<String>,
pub account_exclude: Vec<String>,
pub account_required: Vec<String>,
pub vote: Option<bool>,
}Expand description
Subscription filter — the account predicate model the server applies. An
empty account filter (Filter::all) selects the unfiltered non-vote feed;
the access selected for the connection determines whether that feed is
available. Vote transactions remain excluded unless Filter::with_vote
is true.
Fields§
§account_include: Vec<String>§account_exclude: Vec<String>§account_required: Vec<String>§vote: Option<bool>Vote selection (Yellowstone parity): Some(true) selects vote-only;
Some(false) selects non-vote-only. Omitted by default (None), in
which case the server also selects non-votes. One subscription cannot
combine both sets.
Implementations§
Source§impl Filter
impl Filter
Sourcepub fn all() -> Self
pub fn all() -> Self
Subscribe without an account predicate. Votes remain excluded by the
server default; use Filter::with_vote with a separate connection to
select the vote-only feed.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Filter
impl RefUnwindSafe for Filter
impl Send for Filter
impl Sync for Filter
impl Unpin for Filter
impl UnsafeUnpin for Filter
impl UnwindSafe for Filter
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