pub struct JavaOptions {
pub path: Option<PathBuf>,
pub version: Option<String>,
pub image_type: String,
}Fields§
§path: Option<PathBuf>Path to a pre-installed java executable — skips automatic download.
version: Option<String>Force a specific Java major version, e.g. "21".
image_type: StringAdoptium image type: "jre" or "jdk" (default: "jre").
Trait Implementations§
Source§impl Clone for JavaOptions
impl Clone for JavaOptions
Source§fn clone(&self) -> JavaOptions
fn clone(&self) -> JavaOptions
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 JavaOptions
impl Debug for JavaOptions
Source§impl Default for JavaOptions
impl Default for JavaOptions
Source§impl<'de> Deserialize<'de> for JavaOptions
impl<'de> Deserialize<'de> for JavaOptions
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for JavaOptions
impl RefUnwindSafe for JavaOptions
impl Send for JavaOptions
impl Sync for JavaOptions
impl Unpin for JavaOptions
impl UnsafeUnpin for JavaOptions
impl UnwindSafe for JavaOptions
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