pub struct ListTemplateEvent { /* private fields */ }
Implementations
impl ListTemplateEvent
impl ListTemplateEvent
Implementation for the list of template event definitions.
pub fn new() -> ListTemplateEvent
pub fn new() -> ListTemplateEvent
pub fn add_template_event(
&mut self,
name_param: &str,
initial: bool,
list_event: Option<ListEvent>
) -> bool
pub fn add_template_event(
&mut self,
name_param: &str,
initial: bool,
list_event: Option<ListEvent>
) -> bool
Add a new template event into the template event list. If the group and 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 template event.initial
- Initial template event.list_event
- The list of events (or None).
Return
- True if successful, otherwise false.
pub fn copy(&self, updating_json: bool) -> ListTemplateEvent
pub fn copy(&self, updating_json: bool) -> ListTemplateEvent
pub fn initial_event(&self) -> bool
pub fn initial_event(&self) -> bool
pub fn list_event(&self) -> &ListEvent
pub fn list_event(&self) -> &ListEvent
pub fn list_event_mut(&mut self) -> &mut ListEvent
pub fn list_event_mut(&mut self) -> &mut ListEvent
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 remove(&mut self) -> bool
pub fn remove(&mut self) -> bool
Remove the selected template event from the template event list.
Return
- True if successful, otherwise false.
pub fn set_initial_event(&mut self, initial_event_param: bool) -> bool
pub fn set_initial_event(&mut self, initial_event_param: bool) -> 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
Trait Implementations
impl Default for ListTemplateEvent
impl Default for ListTemplateEvent
List of template events default implementation.
impl ListTrait for ListTemplateEvent
impl ListTrait for ListTemplateEvent
List of template events list implementation.
Auto Trait Implementations
impl !RefUnwindSafe for ListTemplateEvent
impl Send for ListTemplateEvent
impl !Sync for ListTemplateEvent
impl Unpin for ListTemplateEvent
impl UnwindSafe for ListTemplateEvent
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