pub struct InstallOptionsBuilder { /* private fields */ }
Expand description
Builder for InstallOptions
.
Implementations§
Source§impl InstallOptionsBuilder
impl InstallOptionsBuilder
Sourcepub fn version_data(&mut self, value: VersionData) -> &mut Self
pub fn version_data(&mut self, value: VersionData) -> &mut Self
Minecraft version data
Sourcepub fn asset_index(&mut self, value: AssetIndex) -> &mut Self
pub fn asset_index(&mut self, value: AssetIndex) -> &mut Self
Minecraft asset index
Sourcepub fn libraries_path(&mut self, value: PathBuf) -> &mut Self
pub fn libraries_path(&mut self, value: PathBuf) -> &mut Self
Path for libraries
Sourcepub fn natives_path(&mut self, value: PathBuf) -> &mut Self
pub fn natives_path(&mut self, value: PathBuf) -> &mut Self
Path for native libraries
Sourcepub fn assets_path(&mut self, value: PathBuf) -> &mut Self
pub fn assets_path(&mut self, value: PathBuf) -> &mut Self
Path for assets
Sourcepub fn log_configs_path(&mut self, value: PathBuf) -> &mut Self
pub fn log_configs_path(&mut self, value: PathBuf) -> &mut Self
Path for log configs
Sourcepub fn minecraft_path(&mut self, value: PathBuf) -> &mut Self
pub fn minecraft_path(&mut self, value: PathBuf) -> &mut Self
Path for minecraft
Sourcepub fn parallel_downloads(&mut self, value: u16) -> &mut Self
pub fn parallel_downloads(&mut self, value: u16) -> &mut Self
Number of parallel downloads
Sourcepub fn download_retries(&mut self, value: u16) -> &mut Self
pub fn download_retries(&mut self, value: u16) -> &mut Self
Number of download retries
Sourcepub fn verify_downloads(&mut self, value: bool) -> &mut Self
pub fn verify_downloads(&mut self, value: bool) -> &mut Self
Whether to verify downloads
Sourcepub fn build(&self) -> Result<InstallOptions, InstallOptionsBuilderError>
pub fn build(&self) -> Result<InstallOptions, InstallOptionsBuilderError>
Trait Implementations§
Source§impl Clone for InstallOptionsBuilder
impl Clone for InstallOptionsBuilder
Source§fn clone(&self) -> InstallOptionsBuilder
fn clone(&self) -> InstallOptionsBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for InstallOptionsBuilder
impl RefUnwindSafe for InstallOptionsBuilder
impl Send for InstallOptionsBuilder
impl Sync for InstallOptionsBuilder
impl Unpin for InstallOptionsBuilder
impl UnwindSafe for InstallOptionsBuilder
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