pub struct ClientOptions {
pub target: Option<String>,
pub wallet: Option<PathBuf>,
pub rpc: Option<String>,
pub caller: Option<String>,
pub private_key: Option<String>,
pub public_key: Option<String>,
}Expand description
Explicit options for opening a client or database.
Prefer wallet for normal use. Inline private_key and public_key
fields exist for controlled services and tests that already manage secret
material outside the local wallet file.
ClientOptions intentionally does not implement Debug because it may
contain private key material.
ⓘ
let _ = format!("{:?}", octra_sqlite::ClientOptions::default());Fields§
§target: Option<String>Saved database name, raw Circle ID, or oct:// database URI.
wallet: Option<PathBuf>Local wallet JSON path.
rpc: Option<String>Octra RPC URL override.
caller: Option<String>Caller address override for read/session construction.
private_key: Option<String>Inline private key material. Prefer wallet outside controlled tests.
public_key: Option<String>Optional public key material used to verify the private key.
Trait Implementations§
Source§impl Clone for ClientOptions
impl Clone for ClientOptions
Source§fn clone(&self) -> ClientOptions
fn clone(&self) -> ClientOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for ClientOptions
impl Default for ClientOptions
Source§fn default() -> ClientOptions
fn default() -> ClientOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ClientOptions
impl RefUnwindSafe for ClientOptions
impl Send for ClientOptions
impl Sync for ClientOptions
impl Unpin for ClientOptions
impl UnsafeUnpin for ClientOptions
impl UnwindSafe for ClientOptions
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