pub enum ConstitutionChoice {
Unset,
Bundled,
GuidedCustom,
ExpertOverride,
Deferred,
}Expand description
The user’s constitution decision. Every value except Unset counts as an
explicit choice for readiness.
Variants§
Unset
No decision recorded yet.
Bundled
Accepted the bundled/default constitution floor. Creates no custom file.
GuidedCustom
Created a guided structured user-global constitution.
ExpertOverride
Expert full-Markdown override
($CODEWHALE_HOME/prompts/constitution.md + opt-in env).
Deferred
Explicitly postponed; bundled law applies until the user returns.
Implementations§
Source§impl ConstitutionChoice
impl ConstitutionChoice
Sourcepub fn is_explicit(self) -> bool
pub fn is_explicit(self) -> bool
True for any value other than Unset.
Trait Implementations§
Source§impl Clone for ConstitutionChoice
impl Clone for ConstitutionChoice
Source§fn clone(&self) -> ConstitutionChoice
fn clone(&self) -> ConstitutionChoice
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 ConstitutionChoice
Source§impl Debug for ConstitutionChoice
impl Debug for ConstitutionChoice
Source§impl Default for ConstitutionChoice
impl Default for ConstitutionChoice
Source§fn default() -> ConstitutionChoice
fn default() -> ConstitutionChoice
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ConstitutionChoice
impl<'de> Deserialize<'de> for ConstitutionChoice
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 ConstitutionChoice
Source§impl PartialEq for ConstitutionChoice
impl PartialEq for ConstitutionChoice
Source§impl Serialize for ConstitutionChoice
impl Serialize for ConstitutionChoice
impl StructuralPartialEq for ConstitutionChoice
Auto Trait Implementations§
impl Freeze for ConstitutionChoice
impl RefUnwindSafe for ConstitutionChoice
impl Send for ConstitutionChoice
impl Sync for ConstitutionChoice
impl Unpin for ConstitutionChoice
impl UnsafeUnpin for ConstitutionChoice
impl UnwindSafe for ConstitutionChoice
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.