pub enum PolicyScope {
Global,
Fighter(String),
WeightClass(String),
Tool(String),
}Expand description
What level a policy rule applies at — from ring-wide regulations down to individual move restrictions.
Variants§
Global
Applies to every fighter in the ring.
Fighter(String)
Applies to a specific fighter by name.
WeightClass(String)
Applies to fighters in a specific weight class.
Tool(String)
Applies to a specific tool (move).
Trait Implementations§
Source§impl Clone for PolicyScope
impl Clone for PolicyScope
Source§fn clone(&self) -> PolicyScope
fn clone(&self) -> PolicyScope
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 PolicyScope
impl Debug for PolicyScope
Source§impl<'de> Deserialize<'de> for PolicyScope
impl<'de> Deserialize<'de> for PolicyScope
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 Hash for PolicyScope
impl Hash for PolicyScope
Source§impl PartialEq for PolicyScope
impl PartialEq for PolicyScope
Source§impl Serialize for PolicyScope
impl Serialize for PolicyScope
impl Eq for PolicyScope
impl StructuralPartialEq for PolicyScope
Auto Trait Implementations§
impl Freeze for PolicyScope
impl RefUnwindSafe for PolicyScope
impl Send for PolicyScope
impl Sync for PolicyScope
impl Unpin for PolicyScope
impl UnsafeUnpin for PolicyScope
impl UnwindSafe for PolicyScope
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.