pub struct UpdateOpError {
pub op_index: usize,
pub code: String,
pub message: String,
pub doc_url: Option<String>,
}Expand description
Per-op error reported by an atomic update operation.
Fields§
§op_index: usizeIndex of the offending op within the original ops array.
code: StringStable error code, e.g. "merge.path.too_deep".
message: StringHuman-readable description with concrete numbers when applicable.
doc_url: Option<String>Optional documentation URL for this error class.
Trait Implementations§
Source§impl Clone for UpdateOpError
impl Clone for UpdateOpError
Source§fn clone(&self) -> UpdateOpError
fn clone(&self) -> UpdateOpError
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 moreSource§impl Debug for UpdateOpError
impl Debug for UpdateOpError
Source§impl<'de> Deserialize<'de> for UpdateOpError
impl<'de> Deserialize<'de> for UpdateOpError
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 UpdateOpError
Source§impl JsonSchema for UpdateOpError
impl JsonSchema for UpdateOpError
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for UpdateOpError
impl PartialEq for UpdateOpError
Source§fn eq(&self, other: &UpdateOpError) -> bool
fn eq(&self, other: &UpdateOpError) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for UpdateOpError
impl Serialize for UpdateOpError
impl StructuralPartialEq for UpdateOpError
Auto Trait Implementations§
impl Freeze for UpdateOpError
impl RefUnwindSafe for UpdateOpError
impl Send for UpdateOpError
impl Sync for UpdateOpError
impl Unpin for UpdateOpError
impl UnsafeUnpin for UpdateOpError
impl UnwindSafe for UpdateOpError
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