Skip to main content

ReadAction

Trait ReadAction 

Source
pub trait ReadAction {
    type Output: Resource;
    type Arguments: Sync;
    type Response: Send;
}
Expand description

Marker trait indicating that a struct is a read action.

Non-paged actions set Response = Vec<Output>. Paged actions set Response = PaginatedResult<Output>. This lets the framework return the correct shape without runtime branching.

Required Associated Types§

Source

type Output: Resource

Resource returned when calling the action.

Source

type Arguments: Sync

Arguments used to get the resource. Could be used in filters.

Source

type Response: Send

The full response type returned by this read action. Non-paged actions use Vec<Output>, paged actions use PaginatedResult<Output>.

Implementors§