#[non_exhaustive]pub struct DialogCodeHookSettingsBuilder { /* private fields */ }
Expand description
A builder for DialogCodeHookSettings
.
Implementations§
source§impl DialogCodeHookSettingsBuilder
impl DialogCodeHookSettingsBuilder
sourcepub fn enabled(self, input: bool) -> Self
pub fn enabled(self, input: bool) -> Self
Enables the dialog code hook so that it processes user requests.
This field is required.sourcepub fn set_enabled(self, input: Option<bool>) -> Self
pub fn set_enabled(self, input: Option<bool>) -> Self
Enables the dialog code hook so that it processes user requests.
sourcepub fn get_enabled(&self) -> &Option<bool>
pub fn get_enabled(&self) -> &Option<bool>
Enables the dialog code hook so that it processes user requests.
sourcepub fn build(self) -> DialogCodeHookSettings
pub fn build(self) -> DialogCodeHookSettings
Consumes the builder and constructs a DialogCodeHookSettings
.
Trait Implementations§
source§impl Clone for DialogCodeHookSettingsBuilder
impl Clone for DialogCodeHookSettingsBuilder
source§fn clone(&self) -> DialogCodeHookSettingsBuilder
fn clone(&self) -> DialogCodeHookSettingsBuilder
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 Default for DialogCodeHookSettingsBuilder
impl Default for DialogCodeHookSettingsBuilder
source§fn default() -> DialogCodeHookSettingsBuilder
fn default() -> DialogCodeHookSettingsBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for DialogCodeHookSettingsBuilder
impl PartialEq for DialogCodeHookSettingsBuilder
source§fn eq(&self, other: &DialogCodeHookSettingsBuilder) -> bool
fn eq(&self, other: &DialogCodeHookSettingsBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DialogCodeHookSettingsBuilder
Auto Trait Implementations§
impl RefUnwindSafe for DialogCodeHookSettingsBuilder
impl Send for DialogCodeHookSettingsBuilder
impl Sync for DialogCodeHookSettingsBuilder
impl Unpin for DialogCodeHookSettingsBuilder
impl UnwindSafe for DialogCodeHookSettingsBuilder
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>
Creates a shared type from an unshared type.