use super::*;
impl StorageQuery {
pub fn new(account: String) -> Self {
Self {
account,
key_prefix: None,
limit: None,
include_pending: false,
}
}
pub fn with_prefix(mut self, prefix: Vec<u8>) -> Self {
self.key_prefix = Some(prefix);
self
}
pub fn with_limit(mut self, limit: usize) -> Self {
self.limit = Some(limit);
self
}
pub fn include_pending(mut self) -> Self {
self.include_pending = true;
self
}
}