pub struct PythonClassVar {
pub name: String,
pub annotation: PythonType,
pub default: Option<PythonExpr>,
}Expand description
A class variable (field) in a Python class.
Fields§
§name: StringField name
annotation: PythonTypeType annotation
default: Option<PythonExpr>Optional default value
Trait Implementations§
Source§impl Clone for PythonClassVar
impl Clone for PythonClassVar
Source§fn clone(&self) -> PythonClassVar
fn clone(&self) -> PythonClassVar
Returns a duplicate 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 PythonClassVar
impl Debug for PythonClassVar
Source§impl PartialEq for PythonClassVar
impl PartialEq for PythonClassVar
impl StructuralPartialEq for PythonClassVar
Auto Trait Implementations§
impl Freeze for PythonClassVar
impl RefUnwindSafe for PythonClassVar
impl Send for PythonClassVar
impl Sync for PythonClassVar
impl Unpin for PythonClassVar
impl UnsafeUnpin for PythonClassVar
impl UnwindSafe for PythonClassVar
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