Skip to main content

SimpleInvokeClient

Trait SimpleInvokeClient 

Source
pub trait SimpleInvokeClient {
    const DOMAIN_CODE: &'static str;

    // Required methods
    fn get_ctx(&self) -> &TardisContext;
    fn get_funs(&self) -> &TardisFunsInst;
    fn get_base_url(&self) -> &str;

    // Provided methods
    fn get_tardis_context_header(&self) -> TardisResult<(String, String)> { ... }
    fn get_url(&self, path: &[&str], query: &str) -> String { ... }
    fn extract_response<T>(
        resp: TardisHttpResponse<TardisResp<T>>,
    ) -> TardisResult<T>
       where T: ParseFromJSON + ToJSON + Serialize + Send + Sync { ... }
}

Required Associated Constants§

Source

const DOMAIN_CODE: &'static str

Required Methods§

Provided Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<'a> SimpleInvokeClient for IamClient<'a>

Source§

const DOMAIN_CODE: &'static str = "iam"