Struct garden::model::NamedVariable
source · pub struct NamedVariable { /* private fields */ }
Implementations§
source§impl NamedVariable
impl NamedVariable
pub fn new(name: String, expr: String, value: Option<String>) -> Self
pub fn get_name(&self) -> &String
pub fn get_expr(&self) -> &String
pub fn set_expr(&mut self, expr: String)
pub fn set_value(&self, value: String)
pub fn get_value(&self) -> Option<&String>
pub fn reset(&self)
Trait Implementations§
source§impl Clone for NamedVariable
impl Clone for NamedVariable
source§fn clone(&self) -> NamedVariable
fn clone(&self) -> NamedVariable
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 more