NominalApiClients#

pub struct NominalApiClients#

Fields#

pub streaming: Client#
pub upload: AsyncUploadServiceClient<Client>#
pub ingest: AsyncIngestServiceClient<Client>#

Implementations#

impl NominalApiClients
pub fn from_uri(base_uri: &str) -> Self#
pub fn try_from_url(base_url: Url, agent: &ProductAgent) -> Result<Self, Error>#
pub fn from_conjure_clients(streaming: Client, services: Client, runtime: &Arc<ConjureRuntime>) -> Self#

NOTE: the conjure client type is a shared handle, and cheap to clone.

pub async fn send(&self, req: WriteRequest<'_>) -> Result<Response<ResponseBody>, Error>#

Trait implementations#

impl Debug for NominalApiClients
fn fmt(&self, f: &mut Formatter<'_>) -> Result

Derived: Clone

Auto traits: Send, Sync, Unpin, !UnwindSafe, !RefUnwindSafe