Struct rustdb::gentrans::GenTransaction[][src]

#[non_exhaustive]
pub struct GenTransaction { pub qy: GenQuery, pub rp: GenResponse, pub ext: Box<dyn Any + Send + Sync>, }
Expand description

Query + Response, implements Transaction.

Fields (Non-exhaustive)

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
qy: GenQuery

Transaction Query.

rp: GenResponse

Transaction Response.

ext: Box<dyn Any + Send + Sync>

Transacation extension data.

Implementations

Trait Implementations

Returns the “default value” for a type. Read more

ARG builtin function. Get path, query parameter, form value or cookie.

STATUSCODE builtin function. sets the response status code.

HEADER builtin function, adds header to response.

GLOBAL builtin function. Used to get request time.

Append SELECT values to response body.

Set the error string.

Get the error string.

Get file attribute ( One of name, content_type, file_name )

Get file content.

Set the extension.

Get the extension. Note: this takes ownership, so extension needs to be set afterwards.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.