Skip to main content

GeneratedQuery

Trait GeneratedQuery 

Source
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§

Source

type Output

The generated declared-result union.

Required Methods§

Source

fn named_query( self, options: QueryOptions, ) -> Result<NamedQuery, ApplicationClientError>

Constructs the exact module-pinned symbolic request.

Source

fn decode_result( response: NamedQueryResult, ) -> Result<Self::Output, ApplicationClientError>

Decodes one identity-checked name-addressed response.

Provided Methods§

Source

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.

Source

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".

Implementors§