pub trait GeneratedQuery {
type Output;
// Required methods
fn named_query(
self,
options: QueryOptions,
) -> Result<NamedQuery, ApplicationClientError>;
fn decode_result(
response: NamedQueryResult,
) -> Result<Self::Output, ApplicationClientError>;
// Provided methods
fn decode_compact_result(
_outcome: String,
_response: CompactResultField,
) -> Result<Self::Output, ApplicationClientError> { ... }
fn decode_packed_result(
_outcome: String,
_response: PackedResultField,
) -> Result<Self::Output, ApplicationClientError> { ... }
}Expand description
One exact named query shape emitted from an immutable query module.
Required Associated Types§
Required Methods§
Sourcefn named_query(
self,
options: QueryOptions,
) -> Result<NamedQuery, ApplicationClientError>
fn named_query( self, options: QueryOptions, ) -> Result<NamedQuery, ApplicationClientError>
Constructs the exact module-pinned symbolic request.
Sourcefn decode_result(
response: NamedQueryResult,
) -> Result<Self::Output, ApplicationClientError>
fn decode_result( response: NamedQueryResult, ) -> Result<Self::Output, ApplicationClientError>
Decodes one identity-checked name-addressed response.
Provided Methods§
Sourcefn decode_compact_result(
_outcome: String,
_response: CompactResultField,
) -> Result<Self::Output, ApplicationClientError>
fn decode_compact_result( _outcome: String, _response: CompactResultField, ) -> Result<Self::Output, ApplicationClientError>
Decodes the compiler-sealed positional arm without constructing generic per-row maps. Only cover-eligible generated operations override this.
Sourcefn decode_packed_result(
_outcome: String,
_response: PackedResultField,
) -> Result<Self::Output, ApplicationClientError>
fn decode_packed_result( _outcome: String, _response: PackedResultField, ) -> Result<Self::Output, ApplicationClientError>
Decodes the compiler-sealed canonical-column arm directly into the generated result without constructing generic value or row maps.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".