pub struct DatabaseWithObjectStores { /* private fields */ }Available on crate features
experimental and IndexedDB and Runtime only.Expand description
Database with an array of object stores.
Implementations§
Source§impl DatabaseWithObjectStores
impl DatabaseWithObjectStores
pub fn new(name: String, version: f64, object_stores: Vec<ObjectStore>) -> Self
Sourcepub fn version(&self) -> f64
pub fn version(&self) -> f64
Database version (type is not ‘integer’, as the standard requires the version number to be ‘unsigned long long’)
Sourcepub fn object_stores(&self) -> &[ObjectStore]
pub fn object_stores(&self) -> &[ObjectStore]
Object stores in this database.
Trait Implementations§
Source§impl Clone for DatabaseWithObjectStores
impl Clone for DatabaseWithObjectStores
Source§fn clone(&self) -> DatabaseWithObjectStores
fn clone(&self) -> DatabaseWithObjectStores
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 DatabaseWithObjectStores
impl Debug for DatabaseWithObjectStores
Source§impl<'de> Deserialize<'de> for DatabaseWithObjectStores
impl<'de> Deserialize<'de> for DatabaseWithObjectStores
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
Auto Trait Implementations§
impl Freeze for DatabaseWithObjectStores
impl RefUnwindSafe for DatabaseWithObjectStores
impl Send for DatabaseWithObjectStores
impl Sync for DatabaseWithObjectStores
impl Unpin for DatabaseWithObjectStores
impl UnwindSafe for DatabaseWithObjectStores
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