Struct amfnengine::core::list_descriptor::ListDescriptor
[−]pub struct ListDescriptor { /* private fields */ }
Implementations
impl ListDescriptor
impl ListDescriptor
List of descriptors implementation.
pub fn new() -> ListDescriptor
pub fn new() -> ListDescriptor
pub fn add_descriptor(
&mut self,
group_param: &str,
name_param: &str,
desc_type_param: &str,
code_param: &str,
value_param: String,
value_expr_param: &str,
propagate_param: bool,
updating_json_param: bool
) -> bool
pub fn add_descriptor(
&mut self,
group_param: &str,
name_param: &str,
desc_type_param: &str,
code_param: &str,
value_param: String,
value_expr_param: &str,
propagate_param: bool,
updating_json_param: bool
) -> bool
Add a new descriptor into the descriptor 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
group_param
- Descriptor group.name_param
- Descriptor name.desc_type_param
- Descriptor type.code_param
- Descriptor code.value_param
- Value parameter.value_expr_param
- Value expression.propagate_param
- Propogate descriptor.updating_json_param
- Updating from json.
Return
- True if successful, otherwise false.
pub fn copy(
&self,
copy_propagate: bool,
updating_json_param: bool
) -> ListDescriptor
pub fn copy(
&self,
copy_propagate: bool,
updating_json_param: bool
) -> ListDescriptor
pub fn copy_list_descriptor(
&self,
list_descriptor: &mut ListDescriptor,
copy_propagate: bool,
updating_json_param: bool
)
pub fn copy_list_descriptor(
&self,
list_descriptor: &mut ListDescriptor,
copy_propagate: bool,
updating_json_param: bool
)
Performs a deep copy of this descriptor list into the descriptor list parameter.
Arguments
list_descriptor
- The descriptor list to copy into.copy_propagate
- Copy only descriptors marked as “propagate” (otherwise copy all descriptors).updating_json_param
- Updating from json
pub fn equal(&self, list_descriptor: &ListDescriptor) -> bool
pub fn equal(&self, list_descriptor: &ListDescriptor) -> bool
pub fn value_expr(&self) -> String
pub fn value_expr(&self) -> String
pub fn list_event_index(&self) -> usize
pub fn list_event_index(&self) -> usize
pub fn get_element_by_name(
&self,
group_param: &str,
name_param: &str,
type_param: &str,
code_param: &str,
select_param: bool
) -> bool
pub fn get_element_by_name(
&self,
group_param: &str,
name_param: &str,
type_param: &str,
code_param: &str,
select_param: bool
) -> bool
pub fn remove(&mut self) -> bool
pub fn remove(&mut self) -> bool
Remove the selected descriptor from the descriptor list.
Return
- True if successful, otherwise false.
pub fn set_value_result(&mut self, value: &str) -> bool
pub fn set_value_result(&mut self, value: &str) -> bool
pub fn set_value_expr(&mut self, value_expr: &str) -> bool
pub fn set_value_expr(&mut self, value_expr: &str) -> bool
pub fn set_propagate(&mut self, propagate: bool) -> bool
pub fn set_propagate(&mut self, propagate: bool) -> bool
pub fn set_list_event_index(&self, list_event_index: usize) -> bool
pub fn set_list_event_index(&self, list_event_index: usize) -> bool
pub fn set_sort_on_add(&mut self, sort_on_add_param: bool) -> bool
pub fn set_sort_on_add(&mut self, sort_on_add_param: bool) -> bool
pub fn set_sort_updated(&mut self, sort_updated_param: bool) -> bool
pub fn set_sort_updated(&mut self, sort_updated_param: bool) -> bool
Trait Implementations
impl Default for ListDescriptor
impl Default for ListDescriptor
List of descriptors default implementation.
impl ListTrait for ListDescriptor
impl ListTrait for ListDescriptor
List of descriptors list implementation.
Auto Trait Implementations
impl !RefUnwindSafe for ListDescriptor
impl Send for ListDescriptor
impl !Sync for ListDescriptor
impl Unpin for ListDescriptor
impl UnwindSafe for ListDescriptor
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