#[non_exhaustive]pub enum BattleOutcome {
Victory,
Defeat,
Draw,
}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.
Trait Implementations§
Source§impl Clone for BattleOutcome
impl Clone for BattleOutcome
Source§fn clone(&self) -> BattleOutcome
fn clone(&self) -> BattleOutcome
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BattleOutcome
impl Debug for BattleOutcome
Source§impl<'de> Deserialize<'de> for BattleOutcome
impl<'de> Deserialize<'de> for BattleOutcome
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
Source§impl Display for BattleOutcome
impl Display for BattleOutcome
Source§impl Hash for BattleOutcome
impl Hash for BattleOutcome
Source§impl PartialEq for BattleOutcome
impl PartialEq for BattleOutcome
Source§impl Serialize for BattleOutcome
impl Serialize for BattleOutcome
impl Eq for BattleOutcome
impl StructuralPartialEq for BattleOutcome
Auto Trait Implementations§
impl Freeze for BattleOutcome
impl RefUnwindSafe for BattleOutcome
impl Send for BattleOutcome
impl Sync for BattleOutcome
impl Unpin for BattleOutcome
impl UnwindSafe for BattleOutcome
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> FetchFrom<T> for T
impl<T> FetchFrom<T> for T
Source§fn fetch_from(_: &Client, t: &T) -> Result<T, Error>
fn fetch_from(_: &Client, t: &T) -> Result<T, Error>
(Sync) Returns a copy of the current instance when attempting to fetch from itself.
In order to re-fetch, see Refetchable.
§Errors
Never errors; is only a Result in order to match the trait signature.
Source§fn a_fetch_from<'life0, 'life1, 'async_trait>(
_: &'life0 Client,
t: &'life1 T,
) -> Pin<Box<dyn Future<Output = Result<T, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
T: 'async_trait,
fn a_fetch_from<'life0, 'life1, 'async_trait>(
_: &'life0 Client,
t: &'life1 T,
) -> Pin<Box<dyn Future<Output = Result<T, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
T: 'async_trait,
(Async) Returns a copy of the current instance when attempting to fetch from itself.
In order to re-fetch, see Refetchable.
§Errors
Never errors; is only a Result in order to match the trait signature.
Source§impl<T, U> FetchInto<U> for T
impl<T, U> FetchInto<U> for T
Source§fn fetch_into(&self, client: &Client) -> Result<U, Error>
fn fetch_into(&self, client: &Client) -> Result<U, Error>
(Sync) Attempts to request to the API and return a new instance of the type being turned
into. Read more
Source§fn a_fetch_into<'life0, 'life1, 'async_trait>(
&'life0 self,
client: &'life1 Client,
) -> Pin<Box<dyn Future<Output = Result<U, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
U: 'async_trait,
T: 'async_trait,
fn a_fetch_into<'life0, 'life1, 'async_trait>(
&'life0 self,
client: &'life1 Client,
) -> Pin<Box<dyn Future<Output = Result<U, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
U: 'async_trait,
T: 'async_trait,
(Async) Attempts to request to the API and return a new instance of the type being turned
into. Read more