pub struct WithItem {
pub context_expr: ExprType,
pub optional_vars: Option<ExprType>,
}
Expand description
A with item (context_expr as optional_vars)
Fields§
§context_expr: ExprType
The context expression (the thing being entered)
optional_vars: Option<ExprType>
Optional variable to bind the context to
Trait Implementations§
Source§impl<'de> Deserialize<'de> for WithItem
impl<'de> Deserialize<'de> for WithItem
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
Source§impl<'a> FromPyObject<'a> for WithItem
impl<'a> FromPyObject<'a> for WithItem
impl StructuralPartialEq for WithItem
Auto Trait Implementations§
impl Freeze for WithItem
impl RefUnwindSafe for WithItem
impl Send for WithItem
impl Sync for WithItem
impl Unpin for WithItem
impl UnwindSafe for WithItem
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ErrorContext for Twhere
T: Debug,
impl<T> ErrorContext for Twhere
T: Debug,
Source§fn with_context(&self, operation: &str) -> String
fn with_context(&self, operation: &str) -> String
Generate a standardized error message with context.