Trait ServiceAbi

Source
pub trait ServiceAbi: ContractAbi {
    type Query: Serialize + DeserializeOwned + Send + Sync + Debug + 'static;
    type QueryResponse: Serialize + DeserializeOwned + Send + Sync + Debug + 'static;
}
Expand description

A trait that includes all the types exported by a Linera application service.

Required Associated Types§

Source

type Query: Serialize + DeserializeOwned + Send + Sync + Debug + 'static

The type of a query receivable by the application’s service.

Source

type QueryResponse: Serialize + DeserializeOwned + Send + Sync + Debug + 'static

The response type of the application’s service.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§