pub enum WriteRejection {
Screened {
detail: RejectReason,
},
DuplicateId,
}Expand description
Why a write did not reach the store.
Variants§
Screened
Failed screening; carries the specific reason for caller diagnostics (e.g. surfacing “not saved: looked like a credential” in the UI).
Fields
§
detail: RejectReasonDuplicateId
An id collision with an existing record. Callers should use
delete-then-write for intentional
overwrites; a bare write never silently clobbers.
Trait Implementations§
Source§impl Clone for WriteRejection
impl Clone for WriteRejection
Source§impl Debug for WriteRejection
impl Debug for WriteRejection
Source§impl<'de> Deserialize<'de> for WriteRejection
impl<'de> Deserialize<'de> for WriteRejection
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 WriteRejection
Source§impl From<RejectReason> for WriteRejection
impl From<RejectReason> for WriteRejection
Source§fn from(detail: RejectReason) -> Self
fn from(detail: RejectReason) -> Self
Converts to this type from the input type.
Source§impl PartialEq for WriteRejection
impl PartialEq for WriteRejection
Source§impl Serialize for WriteRejection
impl Serialize for WriteRejection
impl StructuralPartialEq for WriteRejection
Auto Trait Implementations§
impl Forget for WriteRejection
impl Freeze for WriteRejection
impl Move for WriteRejection
impl RefUnwindSafe for WriteRejection
impl Send for WriteRejection
impl Sync for WriteRejection
impl Unpin for WriteRejection
impl UnsafeUnpin for WriteRejection
impl UnwindSafe for WriteRejection
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more