pub enum RpcFilterType {
DataSize(u64),
Memcmp(Memcmp),
TokenAccountState,
}
Variants§
Implementations§
source§impl RpcFilterType
impl RpcFilterType
pub fn verify(&self) -> Result<(), RpcFilterError>
pub fn allows(&self, account: &AccountSharedData) -> bool
Trait Implementations§
source§impl Clone for RpcFilterType
impl Clone for RpcFilterType
source§fn clone(&self) -> RpcFilterType
fn clone(&self) -> RpcFilterType
Returns a copy of the value. Read more
1.0.0 · 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 RpcFilterType
impl Debug for RpcFilterType
source§impl<'de> Deserialize<'de> for RpcFilterType
impl<'de> Deserialize<'de> for RpcFilterType
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>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for RpcFilterType
impl Hash for RpcFilterType
source§impl PartialEq for RpcFilterType
impl PartialEq for RpcFilterType
source§fn eq(&self, other: &RpcFilterType) -> bool
fn eq(&self, other: &RpcFilterType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for RpcFilterType
impl Serialize for RpcFilterType
impl Eq for RpcFilterType
impl StructuralPartialEq for RpcFilterType
Auto Trait Implementations§
impl Freeze for RpcFilterType
impl RefUnwindSafe for RpcFilterType
impl Send for RpcFilterType
impl Sync for RpcFilterType
impl Unpin for RpcFilterType
impl UnwindSafe for RpcFilterType
Blanket Implementations§
source§impl<T> AbiEnumVisitor for T
impl<T> AbiEnumVisitor for T
default fn visit_for_abi( &self, digester: &mut AbiDigester ) -> Result<AbiDigester, DigestError>
source§impl<T> AbiEnumVisitor for T
impl<T> AbiEnumVisitor for T
default fn visit_for_abi( &self, _digester: &mut AbiDigester ) -> Result<AbiDigester, DigestError>
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
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
Compare self to
key
and return true
if they are equal.