pub trait EnvironmentMetadataRepository:
Send
+ Sync
+ Debug {
// Required methods
fn resource_exists_outside_scope<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
kind: EnvironmentResourceKind,
id: &'life1 str,
scope: &'life2 ResourceScope,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn load<'life0, 'life1, 'async_trait>(
&'life0 self,
scope: &'life1 ResourceScope,
) -> Pin<Box<dyn Future<Output = Result<EnvironmentMetadataSnapshot>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn list_scopes<'life0, 'life1, 'async_trait>(
&'life0 self,
after: Option<&'life1 ResourceScope>,
limit: usize,
) -> Pin<Box<dyn Future<Output = Result<Vec<ResourceScope>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn compare_and_swap<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
scope: &'life1 ResourceScope,
expected_version: u64,
snapshot: &'life2 EnvironmentMetadataSnapshot,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn compare_and_patch<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
scope: &'life1 ResourceScope,
expected_version: u64,
patch: &'life2 EnvironmentMetadataPatch,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
}Required Methods§
fn resource_exists_outside_scope<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
kind: EnvironmentResourceKind,
id: &'life1 str,
scope: &'life2 ResourceScope,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn load<'life0, 'life1, 'async_trait>(
&'life0 self,
scope: &'life1 ResourceScope,
) -> Pin<Box<dyn Future<Output = Result<EnvironmentMetadataSnapshot>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Sourcefn list_scopes<'life0, 'life1, 'async_trait>(
&'life0 self,
after: Option<&'life1 ResourceScope>,
limit: usize,
) -> Pin<Box<dyn Future<Output = Result<Vec<ResourceScope>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn list_scopes<'life0, 'life1, 'async_trait>(
&'life0 self,
after: Option<&'life1 ResourceScope>,
limit: usize,
) -> Pin<Box<dyn Future<Output = Result<Vec<ResourceScope>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Stable tenant/project pagination for background lifecycle reconciliation.
Sourcefn compare_and_swap<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
scope: &'life1 ResourceScope,
expected_version: u64,
snapshot: &'life2 EnvironmentMetadataSnapshot,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn compare_and_swap<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
scope: &'life1 ResourceScope,
expected_version: u64,
snapshot: &'life2 EnvironmentMetadataSnapshot,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Atomically replace metadata when the stored scope version equals
expected_version. Returns false on a concurrent writer conflict.
Sourcefn compare_and_patch<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
scope: &'life1 ResourceScope,
expected_version: u64,
patch: &'life2 EnvironmentMetadataPatch,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn compare_and_patch<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
scope: &'life1 ResourceScope,
expected_version: u64,
patch: &'life2 EnvironmentMetadataPatch,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Atomically apply only changed aggregates when the stored scope version
equals expected_version.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".