pub struct StorageQuery {
pub account: String,
pub key_prefix: Option<Vec<u8>>,
pub limit: Option<usize>,
pub include_pending: bool,
}Expand description
Storage query options
Fields§
§account: String§key_prefix: Option<Vec<u8>>§limit: Option<usize>§include_pending: boolImplementations§
Source§impl StorageQuery
impl StorageQuery
Sourcepub fn for_account(account: impl Into<String>) -> Self
pub fn for_account(account: impl Into<String>) -> Self
Create a query for an account
§impl StorageQuery
impl StorageQuery
pub fn with_prefix(self, prefix: Vec<u8>) -> Self
pub fn with_prefix(self, prefix: Vec<u8>) -> Self
Set key prefix filter
pub fn with_limit(self, limit: usize) -> Self
pub fn with_limit(self, limit: usize) -> Self
Set result limit
pub fn include_pending(self) -> Self
pub fn include_pending(self) -> Self
Include pending changes in results
Trait Implementations§
Source§impl Debug for StorageQuery
impl Debug for StorageQuery
Source§impl Default for StorageQuery
impl Default for StorageQuery
Source§fn default() -> StorageQuery
fn default() -> StorageQuery
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StorageQuery
impl RefUnwindSafe for StorageQuery
impl Send for StorageQuery
impl Sync for StorageQuery
impl Unpin for StorageQuery
impl UnwindSafe for StorageQuery
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> 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