pub struct ConnectOptions {
pub readonly: bool,
pub persist_credentials: bool,
}Expand description
Options for kopia repository connect beyond backend/cache selection.
Copy + Default so the common read-write, non-persisted connect is
ConnectOptions::default() — which produces byte-identical argv to a
pre-ConnectOptions KopiaClient::repository_connect.
Fields§
§readonly: bool--readonly: persist kopia’s read-only bit into the client config, so
every subsequent invocation on this connection is structurally unable
to mutate the repository (browse sessions; replication source connects).
persist_credentials: bool--persist-credentials: write the repository password beside the
config file (<config>.kopia-password) so later invocations reading
that config — including kopia snapshot migrate --source-config run
under a DIFFERENT KOPIA_PASSWORD — authenticate with the persisted
password. kopia’s own default is already persist-on; passing it
explicitly pins the contract rather than relying on the default.
Trait Implementations§
Source§impl Clone for ConnectOptions
impl Clone for ConnectOptions
Source§fn clone(&self) -> ConnectOptions
fn clone(&self) -> ConnectOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for ConnectOptions
Source§impl Debug for ConnectOptions
impl Debug for ConnectOptions
Source§impl Default for ConnectOptions
impl Default for ConnectOptions
Source§fn default() -> ConnectOptions
fn default() -> ConnectOptions
impl Eq for ConnectOptions
Source§impl PartialEq for ConnectOptions
impl PartialEq for ConnectOptions
Source§fn eq(&self, other: &ConnectOptions) -> bool
fn eq(&self, other: &ConnectOptions) -> bool
self and other values to be equal, and is used by ==.