Skip to main content

IntegrationFieldMappingRepository

Trait IntegrationFieldMappingRepository 

Source
pub trait IntegrationFieldMappingRepository: Send + Sync {
    // Required methods
    fn create(
        &self,
        input: CreateIntegrationFieldMapping,
    ) -> Result<IntegrationFieldMapping>;
    fn get(
        &self,
        id: IntegrationFieldMappingId,
    ) -> Result<Option<IntegrationFieldMapping>>;
    fn update(
        &self,
        id: IntegrationFieldMappingId,
        input: UpdateIntegrationFieldMapping,
    ) -> Result<IntegrationFieldMapping>;
    fn list(
        &self,
        filter: IntegrationFieldMappingFilter,
    ) -> Result<Vec<IntegrationFieldMapping>>;
    fn delete(&self, id: IntegrationFieldMappingId) -> Result<()>;
    fn bulk_create(
        &self,
        items: Vec<CreateIntegrationFieldMapping>,
    ) -> Result<u64>;
    fn bulk_delete(&self, ids: Vec<IntegrationFieldMappingId>) -> Result<u64>;
    fn distinct_groups(&self, integration_account: &str) -> Result<Vec<String>>;
}
Expand description

Integration field-mapping repository trait.

Required Methods§

Source

fn create( &self, input: CreateIntegrationFieldMapping, ) -> Result<IntegrationFieldMapping>

Create a new field mapping.

Source

fn get( &self, id: IntegrationFieldMappingId, ) -> Result<Option<IntegrationFieldMapping>>

Get a field mapping by ID.

Source

fn update( &self, id: IntegrationFieldMappingId, input: UpdateIntegrationFieldMapping, ) -> Result<IntegrationFieldMapping>

Update a field mapping (partial).

Source

fn list( &self, filter: IntegrationFieldMappingFilter, ) -> Result<Vec<IntegrationFieldMapping>>

List field mappings with filter.

Source

fn delete(&self, id: IntegrationFieldMappingId) -> Result<()>

Delete a field mapping.

Source

fn bulk_create(&self, items: Vec<CreateIntegrationFieldMapping>) -> Result<u64>

Bulk create field mappings. Returns the number created.

Source

fn bulk_delete(&self, ids: Vec<IntegrationFieldMappingId>) -> Result<u64>

Bulk delete field mappings by ID. Returns the number deleted.

Source

fn distinct_groups(&self, integration_account: &str) -> Result<Vec<String>>

List the distinct mapping groups for an integration account.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<'a, T: 'a + IntegrationFieldMappingRepository + ?Sized> IntegrationFieldMappingRepository for &'a T
where &'a T: Send + Sync,

Source§

impl<T: IntegrationFieldMappingRepository + ?Sized> IntegrationFieldMappingRepository for Arc<T>
where Arc<T>: Send + Sync,

Source§

impl<T: IntegrationFieldMappingRepository + ?Sized> IntegrationFieldMappingRepository for Box<T>
where Box<T>: Send + Sync,

Implementors§