#[non_exhaustive]pub struct ComponentEventBuilder { /* private fields */ }Expand description
A builder for ComponentEvent.
Implementations§
source§impl ComponentEventBuilder
impl ComponentEventBuilder
sourcepub fn action(self, input: impl Into<String>) -> Self
pub fn action(self, input: impl Into<String>) -> Self
The action to perform when a specific event is raised.
sourcepub fn set_action(self, input: Option<String>) -> Self
pub fn set_action(self, input: Option<String>) -> Self
The action to perform when a specific event is raised.
sourcepub fn get_action(&self) -> &Option<String>
pub fn get_action(&self) -> &Option<String>
The action to perform when a specific event is raised.
sourcepub fn parameters(self, input: ActionParameters) -> Self
pub fn parameters(self, input: ActionParameters) -> Self
Describes information about the action.
sourcepub fn set_parameters(self, input: Option<ActionParameters>) -> Self
pub fn set_parameters(self, input: Option<ActionParameters>) -> Self
Describes information about the action.
sourcepub fn get_parameters(&self) -> &Option<ActionParameters>
pub fn get_parameters(&self) -> &Option<ActionParameters>
Describes information about the action.
sourcepub fn binding_event(self, input: impl Into<String>) -> Self
pub fn binding_event(self, input: impl Into<String>) -> Self
Binds an event to an action on a component. When you specify a bindingEvent, the event is called when the action is performed.
sourcepub fn set_binding_event(self, input: Option<String>) -> Self
pub fn set_binding_event(self, input: Option<String>) -> Self
Binds an event to an action on a component. When you specify a bindingEvent, the event is called when the action is performed.
sourcepub fn get_binding_event(&self) -> &Option<String>
pub fn get_binding_event(&self) -> &Option<String>
Binds an event to an action on a component. When you specify a bindingEvent, the event is called when the action is performed.
sourcepub fn build(self) -> ComponentEvent
pub fn build(self) -> ComponentEvent
Consumes the builder and constructs a ComponentEvent.
Trait Implementations§
source§impl Clone for ComponentEventBuilder
impl Clone for ComponentEventBuilder
source§fn clone(&self) -> ComponentEventBuilder
fn clone(&self) -> ComponentEventBuilder
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 ComponentEventBuilder
impl Debug for ComponentEventBuilder
source§impl Default for ComponentEventBuilder
impl Default for ComponentEventBuilder
source§fn default() -> ComponentEventBuilder
fn default() -> ComponentEventBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for ComponentEventBuilder
impl PartialEq for ComponentEventBuilder
source§fn eq(&self, other: &ComponentEventBuilder) -> bool
fn eq(&self, other: &ComponentEventBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for ComponentEventBuilder
Auto Trait Implementations§
impl Freeze for ComponentEventBuilder
impl RefUnwindSafe for ComponentEventBuilder
impl Send for ComponentEventBuilder
impl Sync for ComponentEventBuilder
impl Unpin for ComponentEventBuilder
impl UnwindSafe for ComponentEventBuilder
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.