pub struct JsonOp {
pub op: Op,
pub glob: Option<String>,
pub extra: Map<String, Value>,
}Expand description
A single operation in a JSON request, with per-operation glob.
Fields§
§op: Op§glob: Option<String>§extra: Map<String, Value>Every op field as raw JSON (serde’s flatten buffering copies ALL
keys here, including ones Op consumed — not just leftovers).
Used by validation to detect fields that an op variant silently
dropped, e.g. multiline on a line-scoped operation.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for JsonOp
impl<'de> Deserialize<'de> for JsonOp
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
Auto Trait Implementations§
impl Freeze for JsonOp
impl RefUnwindSafe for JsonOp
impl Send for JsonOp
impl Sync for JsonOp
impl Unpin for JsonOp
impl UnsafeUnpin for JsonOp
impl UnwindSafe for JsonOp
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