pub enum ConfirmationPolicy {
None,
Confirm,
Phrase {
phrase: String,
},
}Expand description
Confirmation required after argument binding and immediately before run.
Variants§
Implementations§
Source§impl ConfirmationPolicy
impl ConfirmationPolicy
pub fn serialize<__S>(
__self: &ConfirmationPolicy,
__serializer: __S,
) -> Result<__S::Ok, __S::Error>where
__S: Serializer,
Source§impl<'de> ConfirmationPolicy
impl<'de> ConfirmationPolicy
pub fn deserialize<__D>(
__deserializer: __D,
) -> Result<ConfirmationPolicy, __D::Error>where
__D: Deserializer<'de>,
Source§impl ConfirmationPolicy
impl ConfirmationPolicy
Sourcepub fn met_by(&self, confirmation: Option<&Confirmation>) -> bool
pub fn met_by(&self, confirmation: Option<&Confirmation>) -> bool
Whether confirmation, as a call carries it from wherever it was asked, answers this
policy: the person’s approve of the asked record the call was kept as, which only the
dispatch sets, or the exact phrase where the policy asks one.
Trait Implementations§
Source§impl Clone for ConfirmationPolicy
impl Clone for ConfirmationPolicy
Source§impl Debug for ConfirmationPolicy
impl Debug for ConfirmationPolicy
Source§impl Default for ConfirmationPolicy
impl Default for ConfirmationPolicy
Source§impl<'de> Deserialize<'de> for ConfirmationPolicy
impl<'de> Deserialize<'de> for ConfirmationPolicy
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ConfirmationPolicy
Source§impl PartialEq for ConfirmationPolicy
impl PartialEq for ConfirmationPolicy
Source§impl Serialize for ConfirmationPolicy
impl Serialize for ConfirmationPolicy
impl StructuralPartialEq for ConfirmationPolicy
Auto Trait Implementations§
impl Forget for ConfirmationPolicy
impl Freeze for ConfirmationPolicy
impl Move for ConfirmationPolicy
impl RefUnwindSafe for ConfirmationPolicy
impl Send for ConfirmationPolicy
impl Sync for ConfirmationPolicy
impl Unpin for ConfirmationPolicy
impl UnsafeUnpin for ConfirmationPolicy
impl UnwindSafe for ConfirmationPolicy
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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