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§
Required Methods§
Sourcefn get(
&self,
id: impl Into<String>,
) -> impl Future<Output = Result<Vec<Self::TMF>, TMFError>>
fn get( &self, id: impl Into<String>, ) -> impl Future<Output = Result<Vec<Self::TMF>, TMFError>>
Get a specific TMF object by Id
Sourcefn list(
&self,
filter: Option<QueryOptions>,
) -> impl Future<Output = Result<Vec<Self::TMF>, TMFError>>
fn list( &self, filter: Option<QueryOptions>, ) -> impl Future<Output = Result<Vec<Self::TMF>, TMFError>>
Get a list of tmf objects applying optional filter
Sourcefn create(
&self,
item: Self::TMF,
) -> impl Future<Output = Result<Self::TMF, TMFError>>
fn create( &self, item: Self::TMF, ) -> impl Future<Output = Result<Self::TMF, TMFError>>
Create a new instance of a TMF object
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.
impl AsyncOperations for TMF620Catalog
Available on non-crate feature
blocking only.Source§impl AsyncOperations for TMF620Category
Available on non-crate feature blocking only.
impl AsyncOperations for TMF620Category
Available on non-crate feature
blocking only.Source§impl AsyncOperations for TMF620ProductOffering
Available on non-crate feature blocking only.
impl AsyncOperations for TMF620ProductOffering
Available on non-crate feature
blocking only.type TMF = ProductOffering
Source§impl AsyncOperations for TMF620ProductOfferingPrice
Available on non-crate feature blocking only.
impl AsyncOperations for TMF620ProductOfferingPrice
Available on non-crate feature
blocking only.type TMF = ProductOfferingPrice
Source§impl AsyncOperations for TMF620ProductSpecification
Available on non-crate feature blocking only.
impl AsyncOperations for TMF620ProductSpecification
Available on non-crate feature
blocking only.type TMF = ProductSpecification
Source§impl AsyncOperations for TMF622ProductOrder
Available on non-crate feature blocking only.
impl AsyncOperations for TMF622ProductOrder
Available on non-crate feature
blocking only.type TMF = ProductOrder
Source§impl AsyncOperations for TMF629Customer
Available on non-crate feature blocking only.
impl AsyncOperations for TMF629Customer
Available on non-crate feature
blocking only.Source§impl AsyncOperations for TMF632Individual
Available on non-crate feature blocking only.
impl AsyncOperations for TMF632Individual
Available on non-crate feature
blocking only.type TMF = Individual
Source§impl AsyncOperations for TMF632Organization
Available on non-crate feature blocking only.
impl AsyncOperations for TMF632Organization
Available on non-crate feature
blocking only.type TMF = Organization
Source§impl AsyncOperations for TMF633Candidate
Available on non-crate feature blocking only.
impl AsyncOperations for TMF633Candidate
Available on non-crate feature
blocking only.type TMF = ServiceCandidate
Source§impl AsyncOperations for TMF633Catalog
Available on non-crate feature blocking only.
impl AsyncOperations for TMF633Catalog
Available on non-crate feature
blocking only.type TMF = ServiceCatalog
Source§impl AsyncOperations for TMF633Category
Available on non-crate feature blocking only.
impl AsyncOperations for TMF633Category
Available on non-crate feature
blocking only.type TMF = ServiceCategory
Source§impl AsyncOperations for TMF633Specification
Available on non-crate feature blocking only.
impl AsyncOperations for TMF633Specification
Available on non-crate feature
blocking only.type TMF = ServiceSpecification
Source§impl AsyncOperations for TMF637ProductInventoryManagement
Available on non-crate feature blocking only.
impl AsyncOperations for TMF637ProductInventoryManagement
Available on non-crate feature
blocking only.Source§impl AsyncOperations for TMF638ServiceInventoryManagement
Available on non-crate feature blocking only.
impl AsyncOperations for TMF638ServiceInventoryManagement
Available on non-crate feature
blocking only.Source§impl AsyncOperations for TMF639ResourceInventoryManagement
Available on non-crate feature blocking only.
impl AsyncOperations for TMF639ResourceInventoryManagement
Available on non-crate feature
blocking only.Source§impl AsyncOperations for TMF645CheckServiceQualification
Available on non-crate feature blocking only.
impl AsyncOperations for TMF645CheckServiceQualification
Available on non-crate feature
blocking only.Source§impl AsyncOperations for TMF648Quote
Available on non-crate feature blocking only.
impl AsyncOperations for TMF648Quote
Available on non-crate feature
blocking only.Source§impl AsyncOperations for TMF663ShoppingCart
Available on non-crate feature blocking only.
impl AsyncOperations for TMF663ShoppingCart
Available on non-crate feature
blocking only.type TMF = ShoppingCart
Source§impl AsyncOperations for TMF674GeographicSite
Available on non-crate feature blocking only.
impl AsyncOperations for TMF674GeographicSite
Available on non-crate feature
blocking only.