#[non_exhaustive]pub struct AtomicFailure {
pub not_created: Option<BTreeMap<String, SetError>>,
pub not_updated: Option<BTreeMap<Id, SetError>>,
pub not_destroyed: Option<BTreeMap<Id, SetError>>,
pub extra: Map<String, Value>,
}Expand description
The details of an atomicFailure error (§4.2): the Foo/set-shaped
notCreated, notUpdated and notDestroyed maps, each optional (“A
server MAY report only the first failure it encounters”).
Other members, in particular object-history notRestored, are kept in
extra; not_restored reads it
(decision 6(b): neither draft names it yet, so it is not a field).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.not_created: Option<BTreeMap<String, SetError>>notCreated: creation id → error.
not_updated: Option<BTreeMap<Id, SetError>>notUpdated: object id → error.
not_destroyed: Option<BTreeMap<Id, SetError>>notDestroyed: object id → error.
extra: Map<String, Value>Unknown members, kept for round-trip.
Implementations§
Source§impl AtomicFailure
impl AtomicFailure
Trait Implementations§
Source§impl Clone for AtomicFailure
impl Clone for AtomicFailure
Source§impl Debug for AtomicFailure
impl Debug for AtomicFailure
Source§impl Default for AtomicFailure
impl Default for AtomicFailure
Source§impl<'de> Deserialize<'de> for AtomicFailure
impl<'de> Deserialize<'de> for AtomicFailure
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
Source§impl PartialEq for AtomicFailure
impl PartialEq for AtomicFailure
Source§impl Serialize for AtomicFailure
impl Serialize for AtomicFailure
impl StructuralPartialEq for AtomicFailure
Auto Trait Implementations§
impl Forget for AtomicFailure
impl Freeze for AtomicFailure
impl Move for AtomicFailure
impl RefUnwindSafe for AtomicFailure
impl Send for AtomicFailure
impl Sync for AtomicFailure
impl Unpin for AtomicFailure
impl UnsafeUnpin for AtomicFailure
impl UnwindSafe for AtomicFailure
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