pub struct SectionBuilder<'a> { /* private fields */ }Expand description
A section being built (Manifest::section).
Implementations§
Source§impl SectionBuilder<'_>
impl SectionBuilder<'_>
Sourcepub fn group(&mut self, id: &str, title: &str) -> &mut Self
pub fn group(&mut self, id: &str, title: &str) -> &mut Self
Opens a group (a heading and its rows); the items after it go in it.
pub fn field(&mut self, field: Field) -> &mut Self
pub fn action(&mut self, action: Action) -> &mut Self
pub fn status(&mut self, status: Status) -> &mut Self
pub fn callout(&mut self, callout: Callout) -> &mut Self
pub fn widget(&mut self, id: &str, kind: &str, options: Json) -> &mut Self
Sourcepub fn group_when(&mut self, clause: &str) -> &mut Self
pub fn group_when(&mut self, clause: &str) -> &mut Self
The last group’s when clause.
pub fn description(&mut self, text: &str) -> &mut Self
pub fn keywords(&mut self, words: &[&str]) -> &mut Self
pub fn under(&mut self, parent: &str) -> &mut Self
Sourcepub fn after(&mut self, anchor: &str) -> &mut Self
pub fn after(&mut self, anchor: &str) -> &mut Self
Places the section right after another of its scope
(scope/section, or a section id of the same scope), from any
manifest (Tree::merge).
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for SectionBuilder<'a>
impl<'a> RefUnwindSafe for SectionBuilder<'a>
impl<'a> Send for SectionBuilder<'a>
impl<'a> Sync for SectionBuilder<'a>
impl<'a> Unpin for SectionBuilder<'a>
impl<'a> UnsafeUnpin for SectionBuilder<'a>
impl<'a> !UnwindSafe for SectionBuilder<'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