Struct stable_diffusion_trainer::environment::Environment
source · pub struct Environment { /* private fields */ }Expand description
The environment structure.
Implementations§
source§impl Environment
impl Environment
sourcepub fn save(&self) -> Result<(), Box<dyn Error>>
pub fn save(&self) -> Result<(), Box<dyn Error>>
Save the environment to the configuration file.
sourcepub fn with_kohya_ss(self, kohya_ss: PathBuf) -> Self
pub fn with_kohya_ss(self, kohya_ss: PathBuf) -> Self
Set the kohya_ss path.
sourcepub fn binary_path(&self) -> PathBuf
pub fn binary_path(&self) -> PathBuf
Get the kohya_ss path.
sourcepub fn python_executable_path(&self) -> PathBuf
pub fn python_executable_path(&self) -> PathBuf
Get the kohya_ss path.
Trait Implementations§
source§impl Debug for Environment
impl Debug for Environment
source§impl Default for Environment
impl Default for Environment
source§impl<'de> Deserialize<'de> for Environment
impl<'de> Deserialize<'de> for Environment
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 RefUnwindSafe for Environment
impl Send for Environment
impl Sync for Environment
impl Unpin for Environment
impl UnwindSafe for Environment
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