pub struct CreateOptions {
pub encryption: Option<String>,
pub splitter: Option<String>,
pub hash: Option<String>,
pub ecc: Option<String>,
pub ecc_overhead_percent: Option<i64>,
}Expand description
Create-time-fixed repository options applied at kopia repository create
(ADR-0005 §13(a)): the encryption/splitter/hash algorithms baked into the repo
format, plus optional Reed-Solomon ECC parity guarding blobs against backend
bit-rot. All fields are immutable post-create (webhook-enforced, §7); kopia only
honors them at create time. Pure args builder so it’s unit-testable.
Fields§
§encryption: Option<String>--encryption algorithm (e.g. AES256-GCM-HMAC-SHA256).
splitter: Option<String>--object-splitter algorithm.
hash: Option<String>--block-hash content-hash algorithm.
ecc: Option<String>--ecc Reed-Solomon algorithm (e.g. REED-SOLOMON-CRC32). ADR-0005 §13(a).
ecc_overhead_percent: Option<i64>--ecc-overhead-percent parity overhead. ADR-0005 §13(a).
Implementations§
Trait Implementations§
Source§impl Clone for CreateOptions
impl Clone for CreateOptions
Source§fn clone(&self) -> CreateOptions
fn clone(&self) -> CreateOptions
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 Debug for CreateOptions
impl Debug for CreateOptions
Source§impl Default for CreateOptions
impl Default for CreateOptions
Source§fn default() -> CreateOptions
fn default() -> CreateOptions
Returns the “default value” for a type. Read more
Source§impl PartialEq for CreateOptions
impl PartialEq for CreateOptions
Source§fn eq(&self, other: &CreateOptions) -> bool
fn eq(&self, other: &CreateOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for CreateOptions
impl StructuralPartialEq for CreateOptions
Auto Trait Implementations§
impl Freeze for CreateOptions
impl RefUnwindSafe for CreateOptions
impl Send for CreateOptions
impl Sync for CreateOptions
impl Unpin for CreateOptions
impl UnsafeUnpin for CreateOptions
impl UnwindSafe for CreateOptions
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