1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
//! Construction options for [`BeekeeperApi`](crate::api::BeekeeperApi).
//!
//! Mirrors the `IBeekeeperOptions` TypeScript interface (see
//! `beekeeper_wasm/src/detailed/interfaces.ts`). The `wasmLocation` field
//! has no Rust analogue (there is no WASM artefact to locate), and the
//! Rust API uses a builder rather than a single options struct literal.
/// Configuration consumed by [`BeekeeperApi::new`](crate::api::BeekeeperApi::new).
///
/// Built with [`BeekeeperOptions::new`] and a chain of setters. All fields
/// are public so that callers can also construct the struct directly when
/// that reads more clearly than the builder.
///
/// # Difference from TS
///
/// - The TS interface (`IBeekeeperOptions`) carries `wasmLocation`; this
/// field is omitted here because the Rust crate links directly to the
/// shared C++ core.
/// - `storageRoot` is required in TS *and* here, but TS defaults it to
/// `"/storage_root"` (web) / `"./storage_root-node"` (Node) at the
/// factory layer. The Rust facade has no such default — callers must
/// pass a path explicitly.