pub async fn create(
        transaction: &mut Transaction<'_>,
        store: &Arc<ObjectStore>,
    ) -> Result<Graveyard, Error> {
        store.ensure_open().await?;
        let object_id = store.get_next_object_id();
        let now = current_time();
        transaction.add(
            store.store_object_id,
            Mutation::insert_object(
                ObjectKey::object(object_id),
                ObjectValue::Object {
                    kind: ObjectKind::Graveyard,
                    attributes: ObjectAttributes {
                        creation_time: now.clone(),
                        modification_time: now,
                    },
                },
            ),
        );
        Ok(Graveyard { store: store.clone(), object_id })
    }
/// Creates a graveyard object in `store`.
Creates a graveyard object in `store`.
Creates a graveyard object in ` store ` .
pub async fn create(
        transaction: &mut Transaction<'_>,
        store: &Arc<ObjectStore>,
    ) -> Result<Graveyard, Error> {
        store.ensure_open().await?;
        let object_id = store.get_next_object_id();
        let now = current_time();
        transaction.add(
            store.store_object_id,
            Mutation::insert_object(
                ObjectKey::object(object_id),
                ObjectValue::Object {
                    kind: ObjectKind::Graveyard,
                    attributes: ObjectAttributes {
                        creation_time: now.clone(),
                        modification_time: now,
                    },
                },
            ),
        );
        Ok(Graveyard { store: store.clone(), object_id })
    }
pub async fn create ( transaction : & mut Transaction < ' _ > , store : & Arc < ObjectStore > , ) -> Result < Graveyard , Error > { store . ensure_open ( ) . await ? ; let object_id = store . get_next_object_id ( ) ; let now = current_time ( ) ; transaction . add ( store . store_object_id , Mutation :: insert_object ( ObjectKey :: object ( object_id ) , ObjectValue :: Object { kind : ObjectKind :: Graveyard , attributes : ObjectAttributes { creation_time : now . clone ( ) , modification_time : now , } , } , ) , ) ; Ok ( Graveyard { store : store . clone ( ) , object_id } ) }
Creates a graveyard object in `store`.
Creates a graveyard object in ` store ` .
transaction
&mut Transaction<'_>
store
&Arc<ObjectStore>
transaction
&mut Transaction<'_>
store
&Arc<ObjectStore>