pub struct ConditionText {
pub name: String,
pub description: String,
pub source: String,
pub edition: Option<Edition>,
}Expand description
A condition, such as Prone, or any other named effect worth describing.
Fields§
§name: String§description: StringAs for SpellText::description.
source: String§edition: Option<Edition>Trait Implementations§
Source§impl Clone for ConditionText
impl Clone for ConditionText
Source§fn clone(&self) -> ConditionText
fn clone(&self) -> ConditionText
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 ComposeSchema for ConditionText
impl ComposeSchema for ConditionText
Source§impl Debug for ConditionText
impl Debug for ConditionText
Source§impl Default for ConditionText
impl Default for ConditionText
Source§impl<'de> Deserialize<'de> for ConditionTextwhere
ConditionText: Default,
impl<'de> Deserialize<'de> for ConditionTextwhere
ConditionText: Default,
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 PartialEq for ConditionText
impl PartialEq for ConditionText
Source§fn eq(&self, other: &ConditionText) -> bool
fn eq(&self, other: &ConditionText) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl RulesText for ConditionText
impl RulesText for ConditionText
Source§impl Serialize for ConditionText
impl Serialize for ConditionText
Source§impl ToSchema for ConditionText
impl ToSchema for ConditionText
impl Eq for ConditionText
impl StructuralPartialEq for ConditionText
Auto Trait Implementations§
impl Freeze for ConditionText
impl RefUnwindSafe for ConditionText
impl Send for ConditionText
impl Sync for ConditionText
impl Unpin for ConditionText
impl UnsafeUnpin for ConditionText
impl UnwindSafe for ConditionText
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.