pub struct StateVar {
pub name: String,
pub type_name: String,
pub is_mutable: bool,
pub visibility: Option<String>,
}Expand description
A state variable in a program.
Fields§
§name: StringVariable name.
type_name: StringData type (chain-specific).
is_mutable: boolWhether it’s mutable.
visibility: Option<String>Visibility: “public”, “private”, “internal”, etc.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for StateVar
impl<'de> Deserialize<'de> for StateVar
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 StateVar
impl RefUnwindSafe for StateVar
impl Send for StateVar
impl Sync for StateVar
impl Unpin for StateVar
impl UnsafeUnpin for StateVar
impl UnwindSafe for StateVar
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