pub struct RequestData {
pub security_origin: Option<String>,
pub storage_key: Option<String>,
pub storage_bucket: Option<StorageBucket>,
pub database_name: String,
pub object_store_name: String,
pub index_name: Option<String>,
pub skip_count: JsUInt,
pub page_size: JsUInt,
pub key_range: Option<KeyRange>,
}Expand description
Requests data from object store or index.
Fields§
§security_origin: Option<String>At least and at most one of securityOrigin, storageKey, or storageBucket must be specified. Security origin.
storage_key: Option<String>Storage key.
storage_bucket: Option<StorageBucket>Storage bucket. If not specified, it uses the default bucket.
database_name: StringDatabase name.
object_store_name: StringObject store name.
index_name: Option<String>Index name. If not specified, it performs an object store data request.
skip_count: JsUIntNumber of records to skip.
page_size: JsUIntNumber of records to fetch.
key_range: Option<KeyRange>Key range.
Trait Implementations§
Source§impl Clone for RequestData
impl Clone for RequestData
Source§fn clone(&self) -> RequestData
fn clone(&self) -> RequestData
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 RequestData
impl Debug for RequestData
Source§impl<'de> Deserialize<'de> for RequestData
impl<'de> Deserialize<'de> for RequestData
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 Method for RequestData
impl Method for RequestData
const NAME: &'static str = "IndexedDB.requestData"
type ReturnObject = RequestDataReturnObject
fn to_method_call(self, call_id: CallId) -> MethodCall<Self>where
Self: Sized,
Source§impl PartialEq for RequestData
impl PartialEq for RequestData
Source§impl Serialize for RequestData
impl Serialize for RequestData
impl StructuralPartialEq for RequestData
Auto Trait Implementations§
impl Freeze for RequestData
impl RefUnwindSafe for RequestData
impl Send for RequestData
impl Sync for RequestData
impl Unpin for RequestData
impl UnsafeUnpin for RequestData
impl UnwindSafe for RequestData
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