pub trait BlockingOperations {
type TMF: HasId;
// Required methods
fn get(&self, id: impl Into<String>) -> Result<Vec<Self::TMF>, TMFError>;
fn list(
&self,
filter: Option<QueryOptions>,
) -> Result<Vec<Self::TMF>, TMFError>;
fn create(&self, item: Self::TMF) -> Result<Self::TMF, TMFError>;
fn update(
&self,
id: impl Into<String>,
patch: Self::TMF,
) -> Result<Self::TMF, TMFError>;
fn delete(&self, id: impl Into<String>) -> 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>) -> Result<Vec<Self::TMF>, TMFError>
fn get(&self, id: impl Into<String>) -> Result<Vec<Self::TMF>, TMFError>
Get a specific TMF object by Id
let categories = TMFClient::new("http://localhost",Some(8000))
.tmf620()
.category()
.get("ID123");Sourcefn list(&self, filter: Option<QueryOptions>) -> Result<Vec<Self::TMF>, TMFError>
fn list(&self, filter: Option<QueryOptions>) -> Result<Vec<Self::TMF>, TMFError>
Get a list of tmf objects applying optional filter
let filter = QueryOptions::default()
.limit(15)
.offset(10);
let categories = TMFClient::new("http://localhost",Some(8000))
.tmf620()
.category()
.list(Some(filter));Sourcefn create(&self, item: Self::TMF) -> Result<Self::TMF, TMFError>
fn create(&self, item: Self::TMF) -> 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".
Implementors§
Source§impl BlockingOperations for TMF620Catalog
Available on crate feature blocking only.
impl BlockingOperations for TMF620Catalog
Available on crate feature
blocking only.Source§impl BlockingOperations for TMF620Category
Available on crate feature blocking only.
impl BlockingOperations for TMF620Category
Available on crate feature
blocking only.Source§impl BlockingOperations for TMF620ProductOffering
Available on crate feature blocking only.
impl BlockingOperations for TMF620ProductOffering
Available on crate feature
blocking only.type TMF = ProductOffering
Source§impl BlockingOperations for TMF620ProductOfferingPrice
Available on crate feature blocking only.
impl BlockingOperations for TMF620ProductOfferingPrice
Available on crate feature
blocking only.type TMF = ProductOfferingPrice
Source§impl BlockingOperations for TMF620ProductSpecification
Available on crate feature blocking only.
impl BlockingOperations for TMF620ProductSpecification
Available on crate feature
blocking only.type TMF = ProductSpecification
Source§impl BlockingOperations for TMF622ProductOrder
Available on crate feature blocking only.
impl BlockingOperations for TMF622ProductOrder
Available on crate feature
blocking only.type TMF = ProductOrder
Source§impl BlockingOperations for TMF629Customer
Available on crate feature blocking only.
impl BlockingOperations for TMF629Customer
Available on crate feature
blocking only.Source§impl BlockingOperations for TMF632Individual
Available on crate feature blocking only.
impl BlockingOperations for TMF632Individual
Available on crate feature
blocking only.type TMF = Individual
Source§impl BlockingOperations for TMF632Organization
Available on crate feature blocking only.
impl BlockingOperations for TMF632Organization
Available on crate feature
blocking only.type TMF = Organization
Source§impl BlockingOperations for TMF633Candidate
Available on crate feature blocking only.
impl BlockingOperations for TMF633Candidate
Available on crate feature
blocking only.type TMF = ServiceCandidate
Source§impl BlockingOperations for TMF633Catalog
Available on crate feature blocking only.
impl BlockingOperations for TMF633Catalog
Available on crate feature
blocking only.type TMF = ServiceCatalog
Source§impl BlockingOperations for TMF633Category
Available on crate feature blocking only.
impl BlockingOperations for TMF633Category
Available on crate feature
blocking only.type TMF = ServiceCategory
Source§impl BlockingOperations for TMF633Specification
Available on crate feature blocking only.
impl BlockingOperations for TMF633Specification
Available on crate feature
blocking only.type TMF = ServiceSpecification
Source§impl BlockingOperations for TMF637ProductInventoryManagement
Available on crate feature blocking only.
impl BlockingOperations for TMF637ProductInventoryManagement
Available on crate feature
blocking only.Source§impl BlockingOperations for TMF638ServiceInventoryManagement
Available on crate feature blocking only.
impl BlockingOperations for TMF638ServiceInventoryManagement
Available on crate feature
blocking only.Source§impl BlockingOperations for TMF639ResourceInventoryManagement
Available on crate feature blocking only.
impl BlockingOperations for TMF639ResourceInventoryManagement
Available on crate feature
blocking only.Source§impl BlockingOperations for TMF645CheckServiceQualification
Available on crate feature blocking only.
impl BlockingOperations for TMF645CheckServiceQualification
Available on crate feature
blocking only.Source§impl BlockingOperations for TMF648Quote
Available on crate feature blocking only.
impl BlockingOperations for TMF648Quote
Available on crate feature
blocking only.Source§impl BlockingOperations for TMF663ShoppingCart
Available on crate feature blocking only.
impl BlockingOperations for TMF663ShoppingCart
Available on crate feature
blocking only.type TMF = ShoppingCart
Source§impl BlockingOperations for TMF674GeographicSite
Available on crate feature blocking only.
impl BlockingOperations for TMF674GeographicSite
Available on crate feature
blocking only.