pub enum GameplayDataError {
EmptyIdentity(&'static str),
DuplicateHero(HeroId),
DuplicateSlotVariant {
hero: HeroId,
slot: LogicalSlot,
variant: Option<AbilityVariant>,
},
VariantRequired {
hero: HeroId,
slot: LogicalSlot,
},
MissingEvidence(String),
EmptyId(&'static str),
InvalidQuantity {
value: f64,
},
Malformed(String),
UnsupportedSchema(u32),
DigestMismatch {
declared: String,
computed: String,
},
}Expand description
Validation and construction errors for gameplay data.
Variants§
EmptyIdentity(&'static str)
DuplicateHero(HeroId)
DuplicateSlotVariant
VariantRequired
MissingEvidence(String)
EmptyId(&'static str)
InvalidQuantity
Malformed(String)
UnsupportedSchema(u32)
DigestMismatch
Trait Implementations§
Source§impl Clone for GameplayDataError
impl Clone for GameplayDataError
Source§fn clone(&self) -> GameplayDataError
fn clone(&self) -> GameplayDataError
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 moreSource§impl Debug for GameplayDataError
impl Debug for GameplayDataError
Source§impl Display for GameplayDataError
impl Display for GameplayDataError
Source§impl Error for GameplayDataError
impl Error for GameplayDataError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for GameplayDataError
impl PartialEq for GameplayDataError
impl StructuralPartialEq for GameplayDataError
Auto Trait Implementations§
impl Freeze for GameplayDataError
impl RefUnwindSafe for GameplayDataError
impl Send for GameplayDataError
impl Sync for GameplayDataError
impl Unpin for GameplayDataError
impl UnsafeUnpin for GameplayDataError
impl UnwindSafe for GameplayDataError
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