pub struct SaveOptions {
pub compression: Compression,
pub metadata: Option<Metadata>,
pub encryption: Option<EncryptionParams>,
pub signing_key: Option<SigningKeyPair>,
pub license: Option<LicenseBlock>,
}Expand description
Options for saving datasets
Fields§
§compression: CompressionCompression algorithm to use
metadata: Option<Metadata>Optional metadata to include
encryption: Option<EncryptionParams>Encryption parameters (requires format-encryption feature)
signing_key: Option<SigningKeyPair>Signing key pair (requires format-signing feature)
license: Option<LicenseBlock>License block for commercial distribution
Implementations§
Source§impl SaveOptions
impl SaveOptions
Sourcepub fn with_compression(self, compression: Compression) -> Self
pub fn with_compression(self, compression: Compression) -> Self
Set compression algorithm
Sourcepub fn with_metadata(self, metadata: Metadata) -> Self
pub fn with_metadata(self, metadata: Metadata) -> Self
Set metadata
Sourcepub fn with_password(self, password: impl Into<String>) -> Self
pub fn with_password(self, password: impl Into<String>) -> Self
Set password-based encryption (requires format-encryption feature)
Sourcepub fn with_recipient(self, public_key: [u8; 32]) -> Self
pub fn with_recipient(self, public_key: [u8; 32]) -> Self
Set recipient-based encryption (requires format-encryption feature)
Sourcepub fn with_signing_key(self, key: SigningKeyPair) -> Self
pub fn with_signing_key(self, key: SigningKeyPair) -> Self
Set signing key (requires format-signing feature)
Sourcepub fn with_license(self, license: LicenseBlock) -> Self
pub fn with_license(self, license: LicenseBlock) -> Self
Set license block
Trait Implementations§
Source§impl Clone for SaveOptions
impl Clone for SaveOptions
Source§fn clone(&self) -> SaveOptions
fn clone(&self) -> SaveOptions
Returns a duplicate of the value. Read more
1.0.0 · 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 SaveOptions
impl Debug for SaveOptions
Auto Trait Implementations§
impl Freeze for SaveOptions
impl RefUnwindSafe for SaveOptions
impl Send for SaveOptions
impl Sync for SaveOptions
impl Unpin for SaveOptions
impl UnsafeUnpin for SaveOptions
impl UnwindSafe for SaveOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.