pub trait GraphCrud:
ResolveRecordId
+ Send
+ Sync {
// Provided methods
fn relate<'life0, 'life1, 'async_trait, R, T>(
&'life0 self,
target: &'life1 T,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where R: RelationMeta + Send + Sync + 'async_trait,
T: ResolveRecordId + Send + Sync + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
fn unrelate<'life0, 'life1, 'async_trait, R, T>(
&'life0 self,
target: &'life1 T,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where R: RelationMeta + Send + Sync + 'async_trait,
T: ResolveRecordId + Send + Sync + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
}Expand description
Convenience graph methods for values that can resolve to one record id.
Provided Methods§
Sourcefn relate<'life0, 'life1, 'async_trait, R, T>(
&'life0 self,
target: &'life1 T,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
R: RelationMeta + Send + Sync + 'async_trait,
T: ResolveRecordId + Send + Sync + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn relate<'life0, 'life1, 'async_trait, R, T>(
&'life0 self,
target: &'life1 T,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
R: RelationMeta + Send + Sync + 'async_trait,
T: ResolveRecordId + Send + Sync + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Creates a relation from self to target.
Sourcefn unrelate<'life0, 'life1, 'async_trait, R, T>(
&'life0 self,
target: &'life1 T,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
R: RelationMeta + Send + Sync + 'async_trait,
T: ResolveRecordId + Send + Sync + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn unrelate<'life0, 'life1, 'async_trait, R, T>(
&'life0 self,
target: &'life1 T,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
R: RelationMeta + Send + Sync + 'async_trait,
T: ResolveRecordId + Send + Sync + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Deletes a relation from self to target.
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.