pub struct PythonContext {
pub interpreter: Option<Arc<PathBuf>>,
pub script_root: Option<Arc<PathBuf>>,
pub environment: Option<Arc<HashMap<String, String>>>,
}Expand description
Context for Python backend. Contains only external resources, not constructed services.
Fields§
§interpreter: Option<Arc<PathBuf>>Path to the Python interpreter (if explicitly specified).
script_root: Option<Arc<PathBuf>>Root directory for Python scripts (if explicitly specified).
environment: Option<Arc<HashMap<String, String>>>Environment variables for the Python process (if any).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PythonContext
impl RefUnwindSafe for PythonContext
impl Send for PythonContext
impl Sync for PythonContext
impl Unpin for PythonContext
impl UnsafeUnpin for PythonContext
impl UnwindSafe for PythonContext
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