pub enum Stance {
Optimistic,
Explicit,
Skip,
}Expand description
Which of the specification’s three validation stances to take for one write.
atproto’s validate parameter is a tri-state and each state is one of the
stances the Lexicon specification names. Absent is the default and is the
one this server takes.
Variants§
Optimistic
Validate against the schema when one is held, and store faithfully when
it is not. validate absent.
Explicit
Every record must resolve to a schema and satisfy it. validate: true.
Skip
Do not check the record against any schema. validate: false.
Implementations§
Trait Implementations§
impl Copy for Stance
impl Eq for Stance
impl StructuralPartialEq for Stance
Auto Trait Implementations§
impl Freeze for Stance
impl RefUnwindSafe for Stance
impl Send for Stance
impl Sync for Stance
impl Unpin for Stance
impl UnsafeUnpin for Stance
impl UnwindSafe for Stance
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
Checks if this value is equivalent to the given key. Read more
§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.