pub struct InteractionComponentBuilder<'a> { /* private fields */ }Expand description
A Type that knows how to construct an InteractionComponent.
Implementations§
Source§impl<'a> InteractionComponentBuilder<'a>
impl<'a> InteractionComponentBuilder<'a>
Sourcepub fn id(self, val: &'a str) -> Result<Self, DataError>
pub fn id(self, val: &'a str) -> Result<Self, DataError>
Set the id field.
Raise DataError if the argument is empty.
Sourcepub fn description(
self,
tag: &MyLanguageTag,
label: &str,
) -> Result<Self, DataError>
pub fn description( self, tag: &MyLanguageTag, label: &str, ) -> Result<Self, DataError>
Add label tagged by language tag to the description dictionary.
Raise DataError if an error occurred; e.g. the tag is invalid.
Sourcepub fn build(self) -> Result<InteractionComponent, DataError>
pub fn build(self) -> Result<InteractionComponent, DataError>
Create an InteractionComponent from set field values.
Raise DataError if the id field is missing.
Trait Implementations§
Source§impl<'a> Debug for InteractionComponentBuilder<'a>
impl<'a> Debug for InteractionComponentBuilder<'a>
Source§impl<'a> Default for InteractionComponentBuilder<'a>
impl<'a> Default for InteractionComponentBuilder<'a>
Source§fn default() -> InteractionComponentBuilder<'a>
fn default() -> InteractionComponentBuilder<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for InteractionComponentBuilder<'a>
impl<'a> RefUnwindSafe for InteractionComponentBuilder<'a>
impl<'a> Send for InteractionComponentBuilder<'a>
impl<'a> Sync for InteractionComponentBuilder<'a>
impl<'a> Unpin for InteractionComponentBuilder<'a>
impl<'a> UnsafeUnpin for InteractionComponentBuilder<'a>
impl<'a> UnwindSafe for InteractionComponentBuilder<'a>
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