Struct ba2::fo4::ArchiveOptions
source · 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 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