pub struct EnhancedStepBuilder { /* private fields */ }Expand description
Enhanced step builder
Implementations§
Source§impl EnhancedStepBuilder
impl EnhancedStepBuilder
Sourcepub fn with_human_message(self, title: &str, message: &str) -> Self
pub fn with_human_message(self, title: &str, message: &str) -> Self
Set human-readable content
Sourcepub fn with_api_data(
self,
category: &str,
step_type: &str,
operation: &str,
) -> Self
pub fn with_api_data( self, category: &str, step_type: &str, operation: &str, ) -> Self
Set API data
Sourcepub fn with_input(self, key: &str, value: &str) -> Self
pub fn with_input(self, key: &str, value: &str) -> Self
Add input data
Sourcepub fn with_output(self, key: &str, value: &str) -> Self
pub fn with_output(self, key: &str, value: &str) -> Self
Add output data
Sourcepub fn with_math_context(
self,
equation: &str,
variable: &str,
progress: f64,
) -> Self
pub fn with_math_context( self, equation: &str, variable: &str, progress: f64, ) -> Self
Set mathematical context
Sourcepub fn with_message_key(
self,
category: &str,
message_type: &str,
variant: u32,
) -> Self
pub fn with_message_key( self, category: &str, message_type: &str, variant: u32, ) -> Self
Set message key for external systems
Sourcepub fn with_presentation(
self,
color: &str,
importance: u8,
animation: &str,
) -> Self
pub fn with_presentation( self, color: &str, importance: u8, animation: &str, ) -> Self
Set presentation hints
Sourcepub fn build(self) -> EnhancedStep
pub fn build(self) -> EnhancedStep
Build the enhanced step
Auto Trait Implementations§
impl Freeze for EnhancedStepBuilder
impl RefUnwindSafe for EnhancedStepBuilder
impl Send for EnhancedStepBuilder
impl Sync for EnhancedStepBuilder
impl Unpin for EnhancedStepBuilder
impl UnwindSafe for EnhancedStepBuilder
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
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