pub trait OgmiosClient {
// Required method
async fn request<T: DeserializeOwned>(
&self,
method: &str,
params: OgmiosParams,
) -> Result<T, OgmiosClientError>;
}
Expand description
Trait for interacting with the Ogmios JSON-RPC API.
Required Methods§
Sourceasync fn request<T: DeserializeOwned>(
&self,
method: &str,
params: OgmiosParams,
) -> Result<T, OgmiosClientError>
async fn request<T: DeserializeOwned>( &self, method: &str, params: OgmiosParams, ) -> Result<T, OgmiosClientError>
Sends a JSON-RPC request to the Ogmios server and returns the response.
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.