pub struct Controller {
pub id: Option<String>,
pub name: Option<String>,
pub asset: Option<Box<Asset>>,
pub element: ControlElement,
pub extra: Vec<Extra>,
}
Expand description
Categorizes the declaration of generic control information.
Fields§
§id: Option<String>
A text string containing the unique identifier of the element.
name: Option<String>
The text string name of this element.
asset: Option<Box<Asset>>
Asset management information about this element.
element: ControlElement
The element that contains control data.
extra: Vec<Extra>
Provides arbitrary additional information about this element.
Implementations§
Source§impl Controller
impl Controller
Sourcepub fn new(element: ControlElement) -> Self
pub fn new(element: ControlElement) -> Self
Create a new Controller
from a ControlElement
.
Trait Implementations§
Source§impl Clone for Controller
impl Clone for Controller
Source§fn clone(&self) -> Controller
fn clone(&self) -> Controller
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 moreSource§impl Debug for Controller
impl Debug for Controller
Source§impl HasId for Controller
impl HasId for Controller
Source§impl ParseLibrary for Controller
impl ParseLibrary for Controller
Source§fn extract_element(e: &LibraryElement) -> Option<&Library<Self>>
fn extract_element(e: &LibraryElement) -> Option<&Library<Self>>
Extract the library from a single
LibraryElement
.Source§fn mk_element(lib: Library<Self>) -> LibraryElement
fn mk_element(lib: Library<Self>) -> LibraryElement
Make a
LibraryElement
from a Library
.Source§impl Traversable for Controller
impl Traversable for Controller
Auto Trait Implementations§
impl Freeze for Controller
impl RefUnwindSafe for Controller
impl Send for Controller
impl Sync for Controller
impl Unpin for Controller
impl UnwindSafe for Controller
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