pub struct CompiledOperation {
pub operation_id: String,
pub name: Option<String>,
pub kind: OperationKind,
pub root_field: String,
pub root_arguments: Vec<RootArgumentBinding>,
pub selection_arguments: Vec<SelectionArgumentBinding>,
pub variable_shape: CodecShape,
pub payload_shape: CodecShape,
pub directives: Vec<DirectiveRecord>,
pub declared_footprint: Option<Footprint>,
pub law_claims: Vec<LawClaimTemplate>,
}Expand description
Inspectable contract for a selected GraphQL operation.
Fields§
§operation_id: StringStable operation identity derived from the selected operation shape.
name: Option<String>Optional GraphQL operation name.
kind: OperationKindGraphQL operation kind.
root_field: StringRoot schema field selected by the operation.
root_arguments: Vec<RootArgumentBinding>Canonical bindings supplied to the selected root field.
selection_arguments: Vec<SelectionArgumentBinding>Canonical argument bindings supplied to selected payload fields.
variable_shape: CodecShapeCodec shape for the operation variables or root field arguments.
payload_shape: CodecShapeCodec shape for the selected response payload.
directives: Vec<DirectiveRecord>Directives preserved from the executable operation.
declared_footprint: Option<Footprint>Declared resource footprint, when the operation supplies one.
law_claims: Vec<LawClaimTemplate>Compiler-produced templates for laws relevant to this operation.
Trait Implementations§
Source§impl Clone for CompiledOperation
impl Clone for CompiledOperation
Source§fn clone(&self) -> CompiledOperation
fn clone(&self) -> CompiledOperation
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 CompiledOperation
impl Debug for CompiledOperation
Source§impl<'de> Deserialize<'de> for CompiledOperation
impl<'de> Deserialize<'de> for CompiledOperation
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 CompiledOperation
impl PartialEq for CompiledOperation
Source§fn eq(&self, other: &CompiledOperation) -> bool
fn eq(&self, other: &CompiledOperation) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CompiledOperation
impl Serialize for CompiledOperation
impl StructuralPartialEq for CompiledOperation
Auto Trait Implementations§
impl Freeze for CompiledOperation
impl RefUnwindSafe for CompiledOperation
impl Send for CompiledOperation
impl Sync for CompiledOperation
impl Unpin for CompiledOperation
impl UnsafeUnpin for CompiledOperation
impl UnwindSafe for CompiledOperation
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