pub struct PythonVariable {
pub name: String,
pub ty: Option<String>,
pub value: Option<String>,
pub docstring: Option<String>,
}Expand description
A Python variable/attribute
Fields§
§name: String§ty: Option<String>§value: Option<String>§docstring: Option<String>Implementations§
Trait Implementations§
Source§impl Clone for PythonVariable
impl Clone for PythonVariable
Source§fn clone(&self) -> PythonVariable
fn clone(&self) -> PythonVariable
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 PythonVariable
impl Debug for PythonVariable
Source§impl<'de> Deserialize<'de> for PythonVariable
impl<'de> Deserialize<'de> for PythonVariable
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 Freeze for PythonVariable
impl RefUnwindSafe for PythonVariable
impl Send for PythonVariable
impl Sync for PythonVariable
impl Unpin for PythonVariable
impl UnsafeUnpin for PythonVariable
impl UnwindSafe for PythonVariable
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