Trait conjure_codegen::example_types::another::AsyncTestService
source · [−]pub trait AsyncTestService<I, O> {
type GetRawDataBody: AsyncWriteBody<O> + 'static + Send;
type GetAliasedRawDataBody: AsyncWriteBody<O> + 'static + Send;
type MaybeGetRawDataBody: AsyncWriteBody<O> + 'static + Send;
Show 20 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: 'async_trait;
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: 'async_trait;
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: 'async_trait;
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: 'async_trait;
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: 'async_trait;
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: 'async_trait;
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: 'async_trait;
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: 'async_trait;
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: 'async_trait;
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: 'async_trait;
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: 'async_trait;
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: 'async_trait;
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: 'async_trait;
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: 'async_trait;
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: 'async_trait;
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: 'async_trait;
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: 'async_trait;
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: 'async_trait;
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: 'async_trait;
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: 'async_trait;
}
Expand description
A Markdown description of the service.
Required Associated Types
type GetRawDataBody: AsyncWriteBody<O> + 'static + Send
type GetRawDataBody: AsyncWriteBody<O> + 'static + Send
The body type returned by the get_raw_data
method.
type GetAliasedRawDataBody: AsyncWriteBody<O> + 'static + Send
type GetAliasedRawDataBody: AsyncWriteBody<O> + 'static + Send
The body type returned by the get_aliased_raw_data
method.
type MaybeGetRawDataBody: AsyncWriteBody<O> + 'static + Send
type MaybeGetRawDataBody: AsyncWriteBody<O> + 'static + Send
The body type returned by the maybe_get_raw_data
method.
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: 'async_trait,
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: 'async_trait,
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: 'async_trait,
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: 'async_trait,
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: 'async_trait,
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: 'async_trait,
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: 'async_trait,
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: 'async_trait,
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: 'async_trait,
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: 'async_trait,
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: 'async_trait,
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: 'async_trait,
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: 'async_trait,
Gets all branches of this dataset.