pub enum PythonTaskContext {
    Map(HashMap<String, PythonTaskContext>),
    List(Vec<PythonTaskContext>),
    Str(String),
    Int(i32),
    Float(f64),
    Bool(bool),
    None,
    Error(String),
}Expand description
Represents the possible contexts to send to a function that will run with Python.
This enum is designed to model various data types and structures that can be passed between Rust and Python, providing a way to easily convert between native Rust types and their Python counterparts.
Variants§
Map(HashMap<String, PythonTaskContext>)
A dictionary-like structure mapping string keys to other PythonTaskContext values.
List(Vec<PythonTaskContext>)
A list-like structure containing other PythonTaskContext values.
Str(String)
A string value
Int(i32)
An integer value.
Float(f64)
A floating-point value.
Bool(bool)
A boolean value.
None
Represents the absence of a value.
Error(String)
Represents an error with a given message.
Trait Implementations§
Source§impl Clone for PythonTaskContext
 
impl Clone for PythonTaskContext
Source§fn clone(&self) -> PythonTaskContext
 
fn clone(&self) -> PythonTaskContext
Returns a copy of the value. Read more
1.0.0 · 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 PythonTaskContext
 
impl Debug for PythonTaskContext
Source§impl Display for PythonTaskContext
 
impl Display for PythonTaskContext
Source§impl ToPyObject for PythonTaskContext
 
impl ToPyObject for PythonTaskContext
Auto Trait Implementations§
impl Freeze for PythonTaskContext
impl RefUnwindSafe for PythonTaskContext
impl Send for PythonTaskContext
impl Sync for PythonTaskContext
impl Unpin for PythonTaskContext
impl UnwindSafe for PythonTaskContext
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