Struct jfs::Store[][src]

pub struct Store(_);

Implementations

Opens a Store against the specified path.

See new_with_cfg(..) for more details

Arguments
  • path - path to the db directory of JSON documents

Opens a Store against the specified path with the given configuration

If the Store already exists, it will be opened, otherwise this has the side-effect of creating the new Store and the backing directories and files.

Arguments
  • path - path to the db directory of JSON documents, if configured for single db mode then .json will be used as the extension (replacing any existing extension)
  • cfg - configuration for the DB instance

Returns the storage path for the backing JSON store.

In single-file-mode this will be the JSON file location, otherwise it’s the directory in which all JSON objects are stored.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.