pub struct GroupBuilder { /* private fields */ }Expand description
A builder for a non-empty prompt group.
Implementations§
Source§impl GroupBuilder
impl GroupBuilder
Sourcepub fn description(self, description: impl Into<String>) -> Self
pub fn description(self, description: impl Into<String>) -> Self
Sets supporting text rendered below the group heading.
Sourcepub fn field<F>(self, field: F) -> Selfwhere
F: Field + 'static,
pub fn field<F>(self, field: F) -> Selfwhere
F: Field + 'static,
Appends a crate-provided field in execution order.
Sourcepub fn build(self) -> Result<Group, GroupBuildError>
pub fn build(self) -> Result<Group, GroupBuildError>
Validates that this group contains at least one field.
Auto Trait Implementations§
impl Freeze for GroupBuilder
impl !RefUnwindSafe for GroupBuilder
impl !Send for GroupBuilder
impl !Sync for GroupBuilder
impl Unpin for GroupBuilder
impl UnsafeUnpin for GroupBuilder
impl !UnwindSafe for GroupBuilder
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