pub struct ArchiveOptions { /* private fields */ }
Expand description
Info about the contents of the given archive.
use ba2::fo4::{ArchiveOptions, CompressionFormat, Format, Version};
// Write an archive for FO4/FO76, GNRL format
let _ = ArchiveOptions::builder()
.format(Format::GNRL)
.version(Version::v1)
.compression_format(CompressionFormat::Zip)
.build();
// Write an archive for FO4/FO76, DX10 format
let _ = ArchiveOptions::builder()
.format(Format::DX10)
.version(Version::v1)
.compression_format(CompressionFormat::Zip)
.build();
// Write an archive for SF, GNRL format
let _ = ArchiveOptions::builder()
.format(Format::GNRL)
.version(Version::v2)
.compression_format(CompressionFormat::Zip)
.build();
// Write an archive for SF, DX10 format
let _ = ArchiveOptions::builder()
.format(Format::DX10)
.version(Version::v3)
.compression_format(CompressionFormat::LZ4)
.build();
Implementations§
Trait Implementations§
Source§impl From<&Options> for CompressionOptions
impl From<&Options> for CompressionOptions
Source§fn from(value: &ArchiveOptions) -> Self
fn from(value: &ArchiveOptions) -> Self
Converts to this type from the input type.
Source§impl From<&Options> for CompressionOptionsBuilder
impl From<&Options> for CompressionOptionsBuilder
Source§fn from(value: &ArchiveOptions) -> Self
fn from(value: &ArchiveOptions) -> Self
Converts to this type from the input type.
Source§impl From<&Options> for ReadOptions
impl From<&Options> for ReadOptions
Source§fn from(value: &ArchiveOptions) -> Self
fn from(value: &ArchiveOptions) -> Self
Converts to this type from the input type.
Source§impl From<&Options> for ReadOptionsBuilder
impl From<&Options> for ReadOptionsBuilder
Source§fn from(value: &ArchiveOptions) -> Self
fn from(value: &ArchiveOptions) -> Self
Converts to this type from the input type.
Source§impl From<&Options> for WriteOptions
impl From<&Options> for WriteOptions
Source§fn from(value: &ArchiveOptions) -> Self
fn from(value: &ArchiveOptions) -> Self
Converts to this type from the input type.
Source§impl From<&Options> for WriteOptionsBuilder
impl From<&Options> for WriteOptionsBuilder
Source§fn from(value: &ArchiveOptions) -> Self
fn from(value: &ArchiveOptions) -> Self
Converts to this type from the input type.
Source§impl From<Options> for CompressionOptions
impl From<Options> for CompressionOptions
Source§fn from(value: ArchiveOptions) -> Self
fn from(value: ArchiveOptions) -> Self
Converts to this type from the input type.
Source§impl From<Options> for CompressionOptionsBuilder
impl From<Options> for CompressionOptionsBuilder
Source§fn from(value: ArchiveOptions) -> Self
fn from(value: ArchiveOptions) -> Self
Converts to this type from the input type.
Source§impl From<Options> for ReadOptions
impl From<Options> for ReadOptions
Source§fn from(value: ArchiveOptions) -> Self
fn from(value: ArchiveOptions) -> Self
Converts to this type from the input type.
Source§impl From<Options> for ReadOptionsBuilder
impl From<Options> for ReadOptionsBuilder
Source§fn from(value: ArchiveOptions) -> Self
fn from(value: ArchiveOptions) -> Self
Converts to this type from the input type.
Source§impl From<Options> for WriteOptions
impl From<Options> for WriteOptions
Source§fn from(value: ArchiveOptions) -> Self
fn from(value: ArchiveOptions) -> Self
Converts to this type from the input type.
Source§impl From<Options> for WriteOptionsBuilder
impl From<Options> for WriteOptionsBuilder
Source§fn from(value: ArchiveOptions) -> Self
fn from(value: ArchiveOptions) -> Self
Converts to this type from the input type.
impl Copy for Options
Auto Trait Implementations§
impl Freeze for Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnwindSafe for Options
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