pub struct CorrectionDecision {
pub strategy: CorrectionStrategy,
pub should_continue: bool,
pub user_message: Option<String>,
}Expand description
纠错决策
Fields§
§strategy: CorrectionStrategy纠错策略
should_continue: bool是否继续执行
user_message: Option<String>用户消息
Trait Implementations§
Source§impl Clone for CorrectionDecision
impl Clone for CorrectionDecision
Source§fn clone(&self) -> CorrectionDecision
fn clone(&self) -> CorrectionDecision
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 moreAuto Trait Implementations§
impl Freeze for CorrectionDecision
impl RefUnwindSafe for CorrectionDecision
impl Send for CorrectionDecision
impl Sync for CorrectionDecision
impl Unpin for CorrectionDecision
impl UnsafeUnpin for CorrectionDecision
impl UnwindSafe for CorrectionDecision
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