pub enum SignType {
Bool,
BoolRevert,
Number {
on_ok: u8,
on_fail: u8,
},
Str {
on_ok: Cow<'static, str>,
on_fail: Cow<'static, str>,
},
}Expand description
the type of the sign
Variants§
Bool
using bool sign the resp result
Success=> trueErr=> false
BoolRevert
using bool sign the resp result, but revert it
Success=> falseErr=> true
Number
using the provide number as the sign
Success=>on_okErr=>on_fail
Str
using the provide string as the sign
Success=>on_okErr=>on_fail
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SignType
impl RefUnwindSafe for SignType
impl Send for SignType
impl Sync for SignType
impl Unpin for SignType
impl UnwindSafe for SignType
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