Struct amfnengine::core::list_parameter::ListParameter
[−]pub struct ListParameter { /* private fields */ }
Implementations
impl ListParameter
impl ListParameter
List of parameters implementation.
pub fn new() -> ListParameter
pub fn new() -> ListParameter
pub fn add_parameter(
&mut self,
name_param: &str,
label_param: &str,
desc_param: &str,
updating_json_param: bool
) -> bool
pub fn add_parameter(
&mut self,
name_param: &str,
label_param: &str,
desc_param: &str,
updating_json_param: bool
) -> bool
Add a new parameter into the parameter list. If the name results in a duplicate entry, an incrementing number starting from 2 is appended to the name until a non-duplicate entry is found.
Arguments
name_param
- Name of the parameter.label_param
- Label of the parameter.desc_param
- Description of the parameter.updating_json_param
- Updating from json.
Return
- True if successful, otherwise false.
pub fn copy(&self, updating_json_param: bool) -> ListParameter
pub fn copy(&self, updating_json_param: bool) -> ListParameter
pub fn copy_list_parameter(
&self,
list_parameter: &mut ListParameter,
updating_json_param: bool
)
pub fn copy_list_parameter(
&self,
list_parameter: &mut ListParameter,
updating_json_param: bool
)
Performs a deep copy of this parameter list into the parameter list parameter.
Arguments
list_parameter
- The parameter list to copy into.updating_json_param
- Updating from json.
pub fn equal(&self, list_parameter: &ListParameter) -> bool
pub fn equal(&self, list_parameter: &ListParameter) -> bool
pub fn description(&self) -> &str
pub fn description(&self) -> &str
pub fn param_type(&self) -> TokenType
pub fn param_type(&self) -> TokenType
pub fn param_integeri(&self) -> i32
pub fn param_integeri(&self) -> i32
pub fn param_integer(&self) -> usize
pub fn param_integer(&self) -> usize
pub fn param_decimal(&self) -> Decimal
pub fn param_decimal(&self) -> Decimal
pub fn param_string(&self) -> &str
pub fn param_string(&self) -> &str
pub fn get_element_by_name(&self, name_param: &str, select_param: bool) -> bool
pub fn get_element_by_name(&self, name_param: &str, select_param: bool) -> bool
pub fn move_param(&mut self, is_up: bool) -> bool
pub fn move_param(&mut self, is_up: bool) -> bool
pub fn set_description(&mut self, desc_param: &str) -> bool
pub fn set_description(&mut self, desc_param: &str) -> bool
pub fn set_integeri(&mut self, value_param: i32) -> bool
pub fn set_integeri(&mut self, value_param: i32) -> bool
pub fn set_integer(&mut self, value_param: usize) -> bool
pub fn set_integer(&mut self, value_param: usize) -> bool
pub fn set_decimal(&mut self, value_param: Decimal) -> bool
pub fn set_decimal(&mut self, value_param: Decimal) -> bool
pub fn set_string(&mut self, value_param: &str) -> bool
pub fn set_string(&mut self, value_param: &str) -> bool
Trait Implementations
impl Default for ListParameter
impl Default for ListParameter
List of parameters default implementation.
impl ListTrait for ListParameter
impl ListTrait for ListParameter
List of parameters list implementation.
Auto Trait Implementations
impl !RefUnwindSafe for ListParameter
impl Send for ListParameter
impl !Sync for ListParameter
impl Unpin for ListParameter
impl UnwindSafe for ListParameter
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more