pub struct ReportBuilder<'a> { /* private fields */ }Expand description
Builds a Report from unvalidated program input. See Report::builder.
Implementations§
Source§impl<'a> ReportBuilder<'a>
impl<'a> ReportBuilder<'a>
Sourcepub fn id(self, id: &'a str) -> ReportBuilder<'a>
pub fn id(self, id: &'a str) -> ReportBuilder<'a>
Addresses a child record instead of the root.
Sourcepub fn kind(self, kind: Kind) -> ReportBuilder<'a>
pub fn kind(self, kind: Kind) -> ReportBuilder<'a>
What a blocked program needs. Dropped unless the state is blocked.
Sourcepub fn progress(self, progress: u8) -> ReportBuilder<'a>
pub fn progress(self, progress: u8) -> ReportBuilder<'a>
0..=100. Dropped unless the state is working or blocked.
Sourcepub fn app(self, app: &'a str) -> ReportBuilder<'a>
pub fn app(self, app: &'a str) -> ReportBuilder<'a>
Program identifier, [A-Za-z0-9_.+-]{1,32}.
Sourcepub fn title(self, title: &'a str) -> ReportBuilder<'a>
pub fn title(self, title: &'a str) -> ReportBuilder<'a>
Short label, at most 192 bytes, no control characters. Empty text is
the same as no title.
Sourcepub fn msg(self, msg: &'a str) -> ReportBuilder<'a>
pub fn msg(self, msg: &'a str) -> ReportBuilder<'a>
One line of text, at most 2048 bytes, no control characters. Empty
text is the same as no msg. Pass untrusted text through sanitize (feature alloc) first.
Trait Implementations§
Source§impl<'a> Clone for ReportBuilder<'a>
impl<'a> Clone for ReportBuilder<'a>
Source§fn clone(&self) -> ReportBuilder<'a>
fn clone(&self) -> ReportBuilder<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for ReportBuilder<'a>
Auto Trait Implementations§
impl<'a> Freeze for ReportBuilder<'a>
impl<'a> RefUnwindSafe for ReportBuilder<'a>
impl<'a> Send for ReportBuilder<'a>
impl<'a> Sync for ReportBuilder<'a>
impl<'a> Unpin for ReportBuilder<'a>
impl<'a> UnsafeUnpin for ReportBuilder<'a>
impl<'a> UnwindSafe for ReportBuilder<'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