[][src]Trait conjure_codegen::example_types::another::test_service::AsyncTestService

pub trait AsyncTestService<I, O> {
    type GetRawDataBody: AsyncWriteBody<O> + 'static + Send;
    type GetAliasedRawDataBody: AsyncWriteBody<O> + 'static + Send;
    type MaybeGetRawDataBody: AsyncWriteBody<O> + 'static + Send;
    fn get_file_systems<'life0, 'async_trait>(
        &'life0 self,
        auth_: BearerToken
    ) -> Pin<Box<dyn Future<Output = Result<BTreeMap<String, BackingFileSystem>, Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'life0
;
fn create_dataset<'life0, 'async_trait>(
        &'life0 self,
        auth_: BearerToken,
        request: CreateDatasetRequest,
        test_header_arg: String
    ) -> Pin<Box<dyn Future<Output = Result<Dataset, Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'life0
;
fn get_dataset<'life0, 'async_trait>(
        &'life0 self,
        auth_: BearerToken,
        dataset_rid: ResourceIdentifier
    ) -> Pin<Box<dyn Future<Output = Result<Option<Dataset>, Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'life0
;
fn get_raw_data<'life0, 'async_trait>(
        &'life0 self,
        auth_: BearerToken,
        dataset_rid: ResourceIdentifier
    ) -> Pin<Box<dyn Future<Output = Result<Self::GetRawDataBody, Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'life0
;
fn get_aliased_raw_data<'life0, 'async_trait>(
        &'life0 self,
        auth_: BearerToken,
        dataset_rid: ResourceIdentifier
    ) -> Pin<Box<dyn Future<Output = Result<Self::GetAliasedRawDataBody, Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'life0
;
fn maybe_get_raw_data<'life0, 'async_trait>(
        &'life0 self,
        auth_: BearerToken,
        dataset_rid: ResourceIdentifier
    ) -> Pin<Box<dyn Future<Output = Result<Option<Self::MaybeGetRawDataBody>, Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'life0
;
fn get_aliased_string<'life0, 'async_trait>(
        &'life0 self,
        auth_: BearerToken,
        dataset_rid: ResourceIdentifier
    ) -> Pin<Box<dyn Future<Output = Result<AliasedString, Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'life0
;
fn upload_raw_data<'life0, 'async_trait>(
        &'life0 self,
        auth_: BearerToken,
        input: I
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'life0
;
fn upload_aliased_raw_data<'life0, 'async_trait>(
        &'life0 self,
        auth_: BearerToken,
        input: I
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'life0
;
fn get_branches<'life0, 'async_trait>(
        &'life0 self,
        auth_: BearerToken,
        dataset_rid: ResourceIdentifier
    ) -> Pin<Box<dyn Future<Output = Result<BTreeSet<String>, Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'life0
;
fn get_branches_deprecated<'life0, 'async_trait>(
        &'life0 self,
        auth_: BearerToken,
        dataset_rid: ResourceIdentifier
    ) -> Pin<Box<dyn Future<Output = Result<BTreeSet<String>, Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'life0
;
fn resolve_branch<'life0, 'async_trait>(
        &'life0 self,
        auth_: BearerToken,
        dataset_rid: ResourceIdentifier,
        branch: String
    ) -> Pin<Box<dyn Future<Output = Result<Option<String>, Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'life0
;
fn test_param<'life0, 'async_trait>(
        &'life0 self,
        auth_: BearerToken,
        dataset_rid: ResourceIdentifier
    ) -> Pin<Box<dyn Future<Output = Result<Option<String>, Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'life0
;
fn test_query_params<'life0, 'async_trait>(
        &'life0 self,
        auth_: BearerToken,
        query: String,
        something: ResourceIdentifier,
        optional_middle: Option<ResourceIdentifier>,
        implicit: ResourceIdentifier,
        set_end: BTreeSet<String>,
        optional_end: Option<ResourceIdentifier>
    ) -> Pin<Box<dyn Future<Output = Result<i32, Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'life0
;
fn test_no_response_query_params<'life0, 'async_trait>(
        &'life0 self,
        auth_: BearerToken,
        query: String,
        something: ResourceIdentifier,
        optional_middle: Option<ResourceIdentifier>,
        implicit: ResourceIdentifier,
        set_end: BTreeSet<String>,
        optional_end: Option<ResourceIdentifier>
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'life0
;
fn test_boolean<'life0, 'async_trait>(
        &'life0 self,
        auth_: BearerToken
    ) -> Pin<Box<dyn Future<Output = Result<bool, Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'life0
;
fn test_double<'life0, 'async_trait>(
        &'life0 self,
        auth_: BearerToken
    ) -> Pin<Box<dyn Future<Output = Result<f64, Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'life0
;
fn test_integer<'life0, 'async_trait>(
        &'life0 self,
        auth_: BearerToken
    ) -> Pin<Box<dyn Future<Output = Result<i32, Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'life0
;
fn test_post_optional<'life0, 'async_trait>(
        &'life0 self,
        auth_: BearerToken,
        maybe_string: Option<String>
    ) -> Pin<Box<dyn Future<Output = Result<Option<String>, Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'life0
;
fn test_optional_integer_and_double<'life0, 'async_trait>(
        &'life0 self,
        auth_: BearerToken,
        maybe_integer: Option<i32>,
        maybe_double: Option<f64>
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'life0
; }

A Markdown description of the service.

Associated Types

type GetRawDataBody: AsyncWriteBody<O> + 'static + Send

The body type returned by the get_raw_data method.

type GetAliasedRawDataBody: AsyncWriteBody<O> + 'static + Send

The body type returned by the get_aliased_raw_data method.

type MaybeGetRawDataBody: AsyncWriteBody<O> + 'static + Send

The body type returned by the maybe_get_raw_data method.

Loading content...

Required methods

fn get_file_systems<'life0, 'async_trait>(
    &'life0 self,
    auth_: BearerToken
) -> Pin<Box<dyn Future<Output = Result<BTreeMap<String, BackingFileSystem>, Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'life0, 

Returns a mapping from file system id to backing file system configuration.

fn create_dataset<'life0, 'async_trait>(
    &'life0 self,
    auth_: BearerToken,
    request: CreateDatasetRequest,
    test_header_arg: String
) -> Pin<Box<dyn Future<Output = Result<Dataset, Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'life0, 

fn get_dataset<'life0, 'async_trait>(
    &'life0 self,
    auth_: BearerToken,
    dataset_rid: ResourceIdentifier
) -> Pin<Box<dyn Future<Output = Result<Option<Dataset>, Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'life0, 

fn get_raw_data<'life0, 'async_trait>(
    &'life0 self,
    auth_: BearerToken,
    dataset_rid: ResourceIdentifier
) -> Pin<Box<dyn Future<Output = Result<Self::GetRawDataBody, Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'life0, 

fn get_aliased_raw_data<'life0, 'async_trait>(
    &'life0 self,
    auth_: BearerToken,
    dataset_rid: ResourceIdentifier
) -> Pin<Box<dyn Future<Output = Result<Self::GetAliasedRawDataBody, Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'life0, 

fn maybe_get_raw_data<'life0, 'async_trait>(
    &'life0 self,
    auth_: BearerToken,
    dataset_rid: ResourceIdentifier
) -> Pin<Box<dyn Future<Output = Result<Option<Self::MaybeGetRawDataBody>, Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'life0, 

fn get_aliased_string<'life0, 'async_trait>(
    &'life0 self,
    auth_: BearerToken,
    dataset_rid: ResourceIdentifier
) -> Pin<Box<dyn Future<Output = Result<AliasedString, Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'life0, 

fn upload_raw_data<'life0, 'async_trait>(
    &'life0 self,
    auth_: BearerToken,
    input: I
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'life0, 

fn upload_aliased_raw_data<'life0, 'async_trait>(
    &'life0 self,
    auth_: BearerToken,
    input: I
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'life0, 

fn get_branches<'life0, 'async_trait>(
    &'life0 self,
    auth_: BearerToken,
    dataset_rid: ResourceIdentifier
) -> Pin<Box<dyn Future<Output = Result<BTreeSet<String>, Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'life0, 

fn get_branches_deprecated<'life0, 'async_trait>(
    &'life0 self,
    auth_: BearerToken,
    dataset_rid: ResourceIdentifier
) -> Pin<Box<dyn Future<Output = Result<BTreeSet<String>, Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'life0, 

Gets all branches of this dataset.

fn resolve_branch<'life0, 'async_trait>(
    &'life0 self,
    auth_: BearerToken,
    dataset_rid: ResourceIdentifier,
    branch: String
) -> Pin<Box<dyn Future<Output = Result<Option<String>, Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'life0, 

fn test_param<'life0, 'async_trait>(
    &'life0 self,
    auth_: BearerToken,
    dataset_rid: ResourceIdentifier
) -> Pin<Box<dyn Future<Output = Result<Option<String>, Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'life0, 

fn test_query_params<'life0, 'async_trait>(
    &'life0 self,
    auth_: BearerToken,
    query: String,
    something: ResourceIdentifier,
    optional_middle: Option<ResourceIdentifier>,
    implicit: ResourceIdentifier,
    set_end: BTreeSet<String>,
    optional_end: Option<ResourceIdentifier>
) -> Pin<Box<dyn Future<Output = Result<i32, Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'life0, 

fn test_no_response_query_params<'life0, 'async_trait>(
    &'life0 self,
    auth_: BearerToken,
    query: String,
    something: ResourceIdentifier,
    optional_middle: Option<ResourceIdentifier>,
    implicit: ResourceIdentifier,
    set_end: BTreeSet<String>,
    optional_end: Option<ResourceIdentifier>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'life0, 

fn test_boolean<'life0, 'async_trait>(
    &'life0 self,
    auth_: BearerToken
) -> Pin<Box<dyn Future<Output = Result<bool, Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'life0, 

fn test_double<'life0, 'async_trait>(
    &'life0 self,
    auth_: BearerToken
) -> Pin<Box<dyn Future<Output = Result<f64, Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'life0, 

fn test_integer<'life0, 'async_trait>(
    &'life0 self,
    auth_: BearerToken
) -> Pin<Box<dyn Future<Output = Result<i32, Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'life0, 

fn test_post_optional<'life0, 'async_trait>(
    &'life0 self,
    auth_: BearerToken,
    maybe_string: Option<String>
) -> Pin<Box<dyn Future<Output = Result<Option<String>, Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'life0, 

fn test_optional_integer_and_double<'life0, 'async_trait>(
    &'life0 self,
    auth_: BearerToken,
    maybe_integer: Option<i32>,
    maybe_double: Option<f64>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'life0, 

Loading content...

Implementors

Loading content...