pub struct Operation {
pub op_id: Option<String>,
pub language: Option<CommandType>,
pub command: Option<String>,
pub ast: Option<Command>,
pub parameters: Option<Map<String, Json>>,
pub idempotency_key: Option<String>,
pub options: Option<OperationOptions>,
pub extensions: Option<Map<String, Json>>,
}Expand description
One operation in a request (Spec §73).
Fields§
§op_id: Option<String>A request-local correlation id.
language: Option<CommandType>The declared language. Advisory only: the parsed command is authoritative for security classification (§73.1).
command: Option<String>The KIP command text.
ast: Option<Command>A pre-parsed command, where the runtime advertises the capability.
parameters: Option<Map<String, Json>>Operation-local parameter bindings.
Parameters are structurally bound to complete value positions, never string-interpolated: they are data, not code (§74, §88.2).
idempotency_key: Option<String>One logical mutation intent, scoped to this operation.
options: Option<OperationOptions>Reserved operation-local options.
extensions: Option<Map<String, Json>>Namespaced extensions.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Operation
impl<'de> Deserialize<'de> for Operation
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 StructuralPartialEq for Operation
Auto Trait Implementations§
impl Forget for Operation
impl Freeze for Operation
impl Move for Operation
impl RefUnwindSafe for Operation
impl Send for Operation
impl Sync for Operation
impl Unpin for Operation
impl UnsafeUnpin for Operation
impl UnwindSafe for Operation
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