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 SectionBuilder<'_>
pub fn group(&mut self, id: &str, title: &str) -> &mut SectionBuilder<'_>
Opens a group (a heading and its rows); the items after it go in it.
pub fn field(&mut self, field: Field) -> &mut SectionBuilder<'_>
pub fn action(&mut self, action: Action) -> &mut SectionBuilder<'_>
pub fn status(&mut self, status: Status) -> &mut SectionBuilder<'_>
pub fn callout(&mut self, callout: Callout) -> &mut SectionBuilder<'_>
pub fn widget( &mut self, id: &str, kind: &str, options: Value, ) -> &mut SectionBuilder<'_>
Sourcepub fn list(&mut self, records: Records) -> &mut SectionBuilder<'_>
pub fn list(&mut self, records: Records) -> &mut SectionBuilder<'_>
A record list.
Sourcepub fn table(&mut self, records: Records) -> &mut SectionBuilder<'_>
pub fn table(&mut self, records: Records) -> &mut SectionBuilder<'_>
A record table.
Sourcepub fn group_when(&mut self, clause: &str) -> &mut SectionBuilder<'_>
pub fn group_when(&mut self, clause: &str) -> &mut SectionBuilder<'_>
The last group’s when clause.
Sourcepub fn when(&mut self, clause: &str) -> &mut SectionBuilder<'_>
pub fn when(&mut self, clause: &str) -> &mut SectionBuilder<'_>
The section’s when clause.
pub fn description(&mut self, text: &str) -> &mut SectionBuilder<'_>
pub fn keywords(&mut self, words: &[&str]) -> &mut SectionBuilder<'_>
pub fn under(&mut self, parent: &str) -> &mut SectionBuilder<'_>
Sourcepub fn after(&mut self, anchor: &str) -> &mut SectionBuilder<'_>
pub fn after(&mut self, anchor: &str) -> &mut SectionBuilder<'_>
Places the section right after another of its scope
(scope/section, or a section id of the same scope), from any
manifest (Tree::merge).
Sourcepub fn before(&mut self, anchor: &str) -> &mut SectionBuilder<'_>
pub fn before(&mut self, anchor: &str) -> &mut SectionBuilder<'_>
Places the section right before another of its scope.
Sourcepub fn order(&mut self, order: i32) -> &mut SectionBuilder<'_>
pub fn order(&mut self, order: i32) -> &mut SectionBuilder<'_>
An explicit order: a weight sorted before the registration order,
across manifests (0, the default, leaves the section where its
manifest declares it). Prefer after.
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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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 more