pub enum ClauseStatus {
Suggested,
Accepted,
}Expand description
Whether a clause is live law or merely proposed.
The default is deliberately Suggested: a file
that omits the field, or a model draft that forgets it, must not become
enforceable prose by accident.
Variants§
Suggested
Proposed only. Never rendered into the model-facing block.
Accepted
Explicitly ratified by a human. Rendered as standing law.
Implementations§
Source§impl ClauseStatus
impl ClauseStatus
Sourcepub fn is_accepted(self) -> bool
pub fn is_accepted(self) -> bool
True when this clause may enter the model-facing prompt.
Trait Implementations§
Source§impl Clone for ClauseStatus
impl Clone for ClauseStatus
Source§fn clone(&self) -> ClauseStatus
fn clone(&self) -> ClauseStatus
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 ClauseStatus
Source§impl Debug for ClauseStatus
impl Debug for ClauseStatus
Source§impl Default for ClauseStatus
impl Default for ClauseStatus
Source§fn default() -> ClauseStatus
fn default() -> ClauseStatus
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ClauseStatus
impl<'de> Deserialize<'de> for ClauseStatus
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 ClauseStatus
Source§impl Ord for ClauseStatus
impl Ord for ClauseStatus
Source§fn cmp(&self, other: &ClauseStatus) -> Ordering
fn cmp(&self, other: &ClauseStatus) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ClauseStatus
impl PartialEq for ClauseStatus
Source§impl PartialOrd for ClauseStatus
impl PartialOrd for ClauseStatus
Source§impl Serialize for ClauseStatus
impl Serialize for ClauseStatus
impl StructuralPartialEq for ClauseStatus
Auto Trait Implementations§
impl Freeze for ClauseStatus
impl RefUnwindSafe for ClauseStatus
impl Send for ClauseStatus
impl Sync for ClauseStatus
impl Unpin for ClauseStatus
impl UnsafeUnpin for ClauseStatus
impl UnwindSafe for ClauseStatus
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.