TransformationsApi

Trait TransformationsApi 

Source
pub trait TransformationsApi: Send + Sync {
    // Required methods
    fn delete_transformation<'uid, 'life0, 'async_trait>(
        &'life0 self,
        uid: &'uid str,
    ) -> Pin<Box<dyn Future<Output = Result<(), Error<DeleteTransformationError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'uid: 'async_trait,
             'life0: 'async_trait;
    fn get_transformation<'uid, 'life0, 'async_trait>(
        &'life0 self,
        uid: &'uid str,
    ) -> Pin<Box<dyn Future<Output = Result<Transformation, Error<GetTransformationError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'uid: 'async_trait,
             'life0: 'async_trait;
    fn get_transformation_services<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<String>, Error<GetTransformationServicesError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_transformations<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<TransformationDto>, Error<GetTransformationsError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn put_transformation<'uid, 'transformation_dto, 'life0, 'async_trait>(
        &'life0 self,
        uid: &'uid str,
        transformation_dto: TransformationDto,
    ) -> Pin<Box<dyn Future<Output = Result<(), Error<PutTransformationError>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'uid: 'async_trait,
             'transformation_dto: 'async_trait,
             'life0: 'async_trait;
}
Available on crate feature transformations_api only.

Required Methods§

Source

fn delete_transformation<'uid, 'life0, 'async_trait>( &'life0 self, uid: &'uid str, ) -> Pin<Box<dyn Future<Output = Result<(), Error<DeleteTransformationError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'uid: 'async_trait, 'life0: 'async_trait,

DELETE /transformations/{uid}

Source

fn get_transformation<'uid, 'life0, 'async_trait>( &'life0 self, uid: &'uid str, ) -> Pin<Box<dyn Future<Output = Result<Transformation, Error<GetTransformationError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'uid: 'async_trait, 'life0: 'async_trait,

GET /transformations/{uid}

Source

fn get_transformation_services<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Vec<String>, Error<GetTransformationServicesError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

GET /transformations/services

Source

fn get_transformations<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Vec<TransformationDto>, Error<GetTransformationsError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

GET /transformations

Source

fn put_transformation<'uid, 'transformation_dto, 'life0, 'async_trait>( &'life0 self, uid: &'uid str, transformation_dto: TransformationDto, ) -> Pin<Box<dyn Future<Output = Result<(), Error<PutTransformationError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'uid: 'async_trait, 'transformation_dto: 'async_trait, 'life0: 'async_trait,

PUT /transformations/{uid}

Implementors§