AsyncOperations

Trait AsyncOperations 

Source
pub trait AsyncOperations {
    type TMF: HasId;

    // Required methods
    fn get(
        &self,
        id: impl Into<String>,
    ) -> impl Future<Output = Result<Vec<Self::TMF>, TMFError>>;
    fn list(
        &self,
        filter: Option<QueryOptions>,
    ) -> impl Future<Output = Result<Vec<Self::TMF>, TMFError>>;
    fn create(
        &self,
        item: Self::TMF,
    ) -> impl Future<Output = Result<Self::TMF, TMFError>>;
    fn update(
        &self,
        id: impl Into<String>,
        patch: Self::TMF,
    ) -> impl Future<Output = Result<Self::TMF, TMFError>>;
    fn delete(
        &self,
        id: impl Into<String>,
    ) -> impl Future<Output = Result<Self::TMF, TMFError>>;
}
Expand description

Standard set of operations for all TMF objects

Required Associated Types§

Source

type TMF: HasId

The TMF object type that this trait operates on

Required Methods§

Source

fn get( &self, id: impl Into<String>, ) -> impl Future<Output = Result<Vec<Self::TMF>, TMFError>>

Get a specific TMF object by Id

Source

fn list( &self, filter: Option<QueryOptions>, ) -> impl Future<Output = Result<Vec<Self::TMF>, TMFError>>

Get a list of tmf objects applying optional filter

Source

fn create( &self, item: Self::TMF, ) -> impl Future<Output = Result<Self::TMF, TMFError>>

Create a new instance of a TMF object

Source

fn update( &self, id: impl Into<String>, patch: Self::TMF, ) -> impl Future<Output = Result<Self::TMF, TMFError>>

Update an existing TMF Object using the provided patch object

Source

fn delete( &self, id: impl Into<String>, ) -> impl Future<Output = Result<Self::TMF, TMFError>>

Delete a specific tmf object by Id

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl AsyncOperations for TMF620Catalog

Available on non-crate feature blocking only.
Source§

impl AsyncOperations for TMF620Category

Available on non-crate feature blocking only.
Source§

impl AsyncOperations for TMF620ProductOffering

Available on non-crate feature blocking only.
Source§

impl AsyncOperations for TMF620ProductOfferingPrice

Available on non-crate feature blocking only.
Source§

impl AsyncOperations for TMF620ProductSpecification

Available on non-crate feature blocking only.
Source§

impl AsyncOperations for TMF622ProductOrder

Available on non-crate feature blocking only.
Source§

impl AsyncOperations for TMF629Customer

Available on non-crate feature blocking only.
Source§

impl AsyncOperations for TMF632Individual

Available on non-crate feature blocking only.
Source§

impl AsyncOperations for TMF632Organization

Available on non-crate feature blocking only.
Source§

impl AsyncOperations for TMF633Candidate

Available on non-crate feature blocking only.
Source§

impl AsyncOperations for TMF633Catalog

Available on non-crate feature blocking only.
Source§

impl AsyncOperations for TMF633Category

Available on non-crate feature blocking only.
Source§

impl AsyncOperations for TMF633Specification

Available on non-crate feature blocking only.
Source§

impl AsyncOperations for TMF637ProductInventoryManagement

Available on non-crate feature blocking only.
Source§

impl AsyncOperations for TMF638ServiceInventoryManagement

Available on non-crate feature blocking only.
Source§

impl AsyncOperations for TMF639ResourceInventoryManagement

Available on non-crate feature blocking only.
Source§

impl AsyncOperations for TMF645CheckServiceQualification

Available on non-crate feature blocking only.
Source§

impl AsyncOperations for TMF648Quote

Available on non-crate feature blocking only.
Source§

impl AsyncOperations for TMF663ShoppingCart

Available on non-crate feature blocking only.
Source§

impl AsyncOperations for TMF674GeographicSite

Available on non-crate feature blocking only.