Enum CauldronDecision
#[non_exhaustive]pub enum CauldronDecision {
Pass,
Consume,
Success(CauldronPlan),
}Expand description
Selection result; a consuming result prevents subsequent normal item use.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Pass
Leave normal item use available.
Consume
Stop item use without a plan.
Success(CauldronPlan)
Stop item use and apply the validated plan on the server.
Trait Implementations§
§impl Clone for CauldronDecision
impl Clone for CauldronDecision
§fn clone(&self) -> CauldronDecision
fn clone(&self) -> CauldronDecision
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 more§impl Debug for CauldronDecision
impl Debug for CauldronDecision
§impl Default for CauldronDecision
impl Default for CauldronDecision
§fn default() -> CauldronDecision
fn default() -> CauldronDecision
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CauldronDecision
impl RefUnwindSafe for CauldronDecision
impl Send for CauldronDecision
impl Sync for CauldronDecision
impl Unpin for CauldronDecision
impl UnsafeUnpin for CauldronDecision
impl UnwindSafe for CauldronDecision
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