pub enum Recharge {
ShortRest,
LongRest,
Manual,
}Expand description
When a resource comes back on its own.
Variants§
ShortRest
Recovers on a short or long rest (Action Surge, Ki, Channel Divinity).
LongRest
Recovers on a long rest only (Rage, Arcane Recovery).
Manual
Never recovers automatically (item charges, homebrew).
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Recharge
impl<'de> Deserialize<'de> for Recharge
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for Recharge
impl Eq for Recharge
impl StructuralPartialEq for Recharge
Auto Trait Implementations§
impl Freeze for Recharge
impl RefUnwindSafe for Recharge
impl Send for Recharge
impl Sync for Recharge
impl Unpin for Recharge
impl UnsafeUnpin for Recharge
impl UnwindSafe for Recharge
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.