pub struct QueryFilter(/* private fields */);Implementations§
Source§impl QueryFilter
impl QueryFilter
pub fn new(limit: u32) -> QueryFilter
pub const fn from_raw(raw: tb_query_filter_t) -> QueryFilter
pub const fn into_raw(self) -> tb_query_filter_t
pub const fn as_raw(&self) -> &tb_query_filter_t
pub fn as_raw_mut(&mut self) -> &mut tb_query_filter_t
pub const fn user_data_128(&self) -> u128
pub fn set_user_data_128(&mut self, user_data: u128)
pub fn with_user_data_128(self, user_data: u128) -> QueryFilter
pub const fn user_data_64(&self) -> u64
pub fn set_user_data_64(&mut self, user_data: u64)
pub fn with_user_data_64(self, user_data: u64) -> QueryFilter
pub const fn user_data_32(&self) -> u32
pub fn set_user_data_32(&mut self, user_data: u32)
pub fn with_user_data_32(self, user_data: u32) -> QueryFilter
pub const fn ledger(&self) -> u32
pub fn set_ledger(&mut self, ledger: u32)
pub fn with_ledger(self, ledger: u32) -> QueryFilter
pub const fn code(&self) -> u16
pub fn set_code(&mut self, code: u16)
pub fn with_code(self, code: u16) -> QueryFilter
pub fn timestamp_min(&self) -> SystemTime
pub fn set_timestamp_min(&mut self, timestamp_min: SystemTime)
pub fn with_timestamp_min(self, timestamp_min: SystemTime) -> QueryFilter
pub fn timestamp_max(&self) -> SystemTime
pub fn set_timestamp_max(&mut self, timestamp_max: SystemTime)
pub fn with_timestamp_max(self, timestamp_max: SystemTime) -> QueryFilter
pub const fn limit(&self) -> u32
pub fn set_limit(&mut self, limit: u32)
pub fn with_limit(self, limit: u32) -> QueryFilter
pub const fn flags(&self) -> QueryFilterFlags
pub fn set_flags(&mut self, flags: QueryFilterFlags)
pub const fn with_flags(self, flags: QueryFilterFlags) -> QueryFilter
Trait Implementations§
Source§impl Clone for QueryFilter
impl Clone for QueryFilter
Source§fn clone(&self) -> QueryFilter
fn clone(&self) -> QueryFilter
Returns a duplicate 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 QueryFilter
impl Debug for QueryFilter
Source§impl From<tb_query_filter_t> for QueryFilter
impl From<tb_query_filter_t> for QueryFilter
Source§fn from(value: tb_query_filter_t) -> QueryFilter
fn from(value: tb_query_filter_t) -> QueryFilter
Converts to this type from the input type.
Source§impl TransparentWrapper<tb_query_filter_t> for QueryFilter
impl TransparentWrapper<tb_query_filter_t> for QueryFilter
Source§fn wrap_ref(s: &Inner) -> &Self
fn wrap_ref(s: &Inner) -> &Self
Convert a reference to the inner type into a reference to the wrapper
type.
Source§fn wrap_mut(s: &mut Inner) -> &mut Self
fn wrap_mut(s: &mut Inner) -> &mut Self
Convert a mutable reference to the inner type into a mutable reference to
the wrapper type.
Source§fn wrap_slice(s: &[Inner]) -> &[Self]where
Self: Sized,
fn wrap_slice(s: &[Inner]) -> &[Self]where
Self: Sized,
Convert a slice to the inner type into a slice to the wrapper type.
Source§fn wrap_slice_mut(s: &mut [Inner]) -> &mut [Self]where
Self: Sized,
fn wrap_slice_mut(s: &mut [Inner]) -> &mut [Self]where
Self: Sized,
Convert a mutable slice to the inner type into a mutable slice to the
wrapper type.
Source§fn peel_ref(s: &Self) -> &Inner
fn peel_ref(s: &Self) -> &Inner
Convert a reference to the wrapper type into a reference to the inner
type.
Source§fn peel_mut(s: &mut Self) -> &mut Inner
fn peel_mut(s: &mut Self) -> &mut Inner
Convert a mutable reference to the wrapper type into a mutable reference
to the inner type.
Source§fn peel_slice(s: &[Self]) -> &[Inner]where
Self: Sized,
fn peel_slice(s: &[Self]) -> &[Inner]where
Self: Sized,
Convert a slice to the wrapped type into a slice to the inner type.
Source§fn peel_slice_mut(s: &mut [Self]) -> &mut [Inner]where
Self: Sized,
fn peel_slice_mut(s: &mut [Self]) -> &mut [Inner]where
Self: Sized,
Convert a mutable slice to the wrapped type into a mutable slice to the
inner type.
impl Copy for QueryFilter
impl Pod for QueryFilter
Auto Trait Implementations§
impl Freeze for QueryFilter
impl RefUnwindSafe for QueryFilter
impl Send for QueryFilter
impl Sync for QueryFilter
impl Unpin for QueryFilter
impl UnwindSafe for QueryFilter
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
Source§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<I, T> TransparentWrapperAlloc<I> for T
impl<I, T> TransparentWrapperAlloc<I> for T
Source§fn wrap_vec(s: Vec<Inner>) -> Vec<Self>where
Self: Sized,
fn wrap_vec(s: Vec<Inner>) -> Vec<Self>where
Self: Sized,
Convert a vec of the inner type into a vec of the wrapper type.
Source§fn wrap_box(s: Box<Inner>) -> Box<Self>
fn wrap_box(s: Box<Inner>) -> Box<Self>
Convert a box to the inner type into a box to the wrapper
type.
Source§fn wrap_rc(s: Rc<Inner>) -> Rc<Self>
fn wrap_rc(s: Rc<Inner>) -> Rc<Self>
Convert an
Rc to the inner type into an Rc to the wrapper type.Source§fn wrap_arc(s: Arc<Inner>) -> Arc<Self>
fn wrap_arc(s: Arc<Inner>) -> Arc<Self>
Convert an
Arc to the inner type into an Arc to the wrapper type.Source§fn peel_vec(s: Vec<Self>) -> Vec<Inner>where
Self: Sized,
fn peel_vec(s: Vec<Self>) -> Vec<Inner>where
Self: Sized,
Convert a vec of the wrapper type into a vec of the inner type.
Source§fn peel_box(s: Box<Self>) -> Box<Inner>
fn peel_box(s: Box<Self>) -> Box<Inner>
Convert a box to the wrapper type into a box to the inner
type.