pub enum ConstitutionSource {
Bundled,
UserGlobal,
ExpertOverride,
}Expand description
Which constitution surface is currently the active user-global law.
Variants§
Bundled
Only the bundled floor is active.
UserGlobal
A structured constitution.json under $CODEWHALE_HOME.
ExpertOverride
An expert full-Markdown override file.
Trait Implementations§
Source§impl Clone for ConstitutionSource
impl Clone for ConstitutionSource
Source§fn clone(&self) -> ConstitutionSource
fn clone(&self) -> ConstitutionSource
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 moreimpl Copy for ConstitutionSource
Source§impl Debug for ConstitutionSource
impl Debug for ConstitutionSource
Source§impl Default for ConstitutionSource
impl Default for ConstitutionSource
Source§fn default() -> ConstitutionSource
fn default() -> ConstitutionSource
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ConstitutionSource
impl<'de> Deserialize<'de> for ConstitutionSource
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 Eq for ConstitutionSource
Source§impl PartialEq for ConstitutionSource
impl PartialEq for ConstitutionSource
Source§impl Serialize for ConstitutionSource
impl Serialize for ConstitutionSource
impl StructuralPartialEq for ConstitutionSource
Auto Trait Implementations§
impl Freeze for ConstitutionSource
impl RefUnwindSafe for ConstitutionSource
impl Send for ConstitutionSource
impl Sync for ConstitutionSource
impl Unpin for ConstitutionSource
impl UnsafeUnpin for ConstitutionSource
impl UnwindSafe for ConstitutionSource
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<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.