Function flatdata::create_archive
[−]
[src]
pub fn create_archive<T: ArchiveBuilder>(
storage: &Rc<RefCell<ResourceStorage>>
) -> Result<(), ResourceStorageError>
Creates a new archive in resource storage.
A resource with name T::NAME is created in the storage. Its content is
the signature of the archive, i.e. T::SCHEMA.
Errors
If an archive with the same name already exists in the storage, then an IO
error of kind AlreadyExists is returned.