pub struct ConfirmationDialogueBuilder { /* private fields */ }Expand description
Consuming builder for ConfirmationDialogue. Validation runs in Self::build.
Implementations§
Source§impl ConfirmationDialogueBuilder
impl ConfirmationDialogueBuilder
Sourcepub fn title(self, value: impl Into<PlainTextInput>) -> Self
pub fn title(self, value: impl Into<PlainTextInput>) -> Self
Sets the dialog title.
Sourcepub fn text(self, value: impl Into<TextInput>) -> Self
pub fn text(self, value: impl Into<TextInput>) -> Self
Sets the explanatory text in the dialog body.
Sourcepub fn confirm(self, value: impl Into<PlainTextInput>) -> Self
pub fn confirm(self, value: impl Into<PlainTextInput>) -> Self
Sets the label of the button that confirms the action.
Sourcepub fn deny(self, value: impl Into<PlainTextInput>) -> Self
pub fn deny(self, value: impl Into<PlainTextInput>) -> Self
Sets the label of the button that cancels the action.
Sourcepub fn style(self, value: ButtonStyle) -> Self
pub fn style(self, value: ButtonStyle) -> Self
Sets the emphasis of the confirm button.
Sourcepub fn clear_style(self) -> Self
pub fn clear_style(self) -> Self
Omits style, including any model default.
Sourcepub fn extension(self, key: impl Into<String>, value: impl Into<Value>) -> Self
pub fn extension(self, key: impl Into<String>, value: impl Into<Value>) -> Self
Adds or replaces an unmodeled extension; reserved names fail at build time.
Sourcepub fn build(self) -> Result<ConfirmationDialogue, ValidationError>
pub fn build(self) -> Result<ConfirmationDialogue, ValidationError>
Validates all fields and their receiving context.
§Errors
Returns a ValidationError for missing fields, invalid values, reserved
extension names, or unsupported field combinations and child contexts.
Trait Implementations§
Source§impl Clone for ConfirmationDialogueBuilder
impl Clone for ConfirmationDialogueBuilder
Source§impl Debug for ConfirmationDialogueBuilder
impl Debug for ConfirmationDialogueBuilder
Auto Trait Implementations§
impl Forget for ConfirmationDialogueBuilder
impl Freeze for ConfirmationDialogueBuilder
impl Move for ConfirmationDialogueBuilder
impl RefUnwindSafe for ConfirmationDialogueBuilder
impl Send for ConfirmationDialogueBuilder
impl Sync for ConfirmationDialogueBuilder
impl Unpin for ConfirmationDialogueBuilder
impl UnsafeUnpin for ConfirmationDialogueBuilder
impl UnwindSafe for ConfirmationDialogueBuilder
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