pub trait Document {
fn create<'life0, 'async_trait, T, U, V>(
&'life0 self,
config: CreateConfig<T>
) -> Pin<Box<dyn Future<Output = DocMetaResult<U, V>> + Send + 'async_trait>>
where
T: Serialize + Send + Sync + 'async_trait,
U: Serialize + DeserializeOwned + Send + Sync + 'async_trait,
V: Serialize + DeserializeOwned + Send + Sync + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait;
fn creates<'life0, 'async_trait, T, U, V>(
&'life0 self,
config: CreatesConfig<T>
) -> Pin<Box<dyn Future<Output = DocMetaVecResult<U, V>> + Send + 'async_trait>>
where
T: Serialize + Send + Sync + 'async_trait,
U: Serialize + DeserializeOwned + Send + Sync + 'async_trait,
V: Serialize + DeserializeOwned + Send + Sync + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait;
fn read<'life0, 'async_trait, T>(
&'life0 self,
config: ReadConfig
) -> Pin<Box<dyn Future<Output = ArangoResult<T>> + Send + 'async_trait>>
where
T: DeserializeOwned + Send + Sync + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait;
fn reads<'life0, 'async_trait, T, U>(
&'life0 self,
config: ReadsConfig<T>
) -> Pin<Box<dyn Future<Output = ArangoVecResult<U>> + Send + 'async_trait>>
where
T: Serialize + Send + Sync + 'async_trait,
U: Serialize + DeserializeOwned + Send + Sync + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait;
fn replace<'life0, 'async_trait, T, U, V>(
&'life0 self,
config: ReplaceConfig<T>
) -> Pin<Box<dyn Future<Output = DocMetaResult<U, V>> + Send + 'async_trait>>
where
T: Serialize + Send + Sync + 'async_trait,
U: Serialize + DeserializeOwned + Send + Sync + 'async_trait,
V: Serialize + DeserializeOwned + Send + Sync + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait;
fn replaces<'life0, 'async_trait, T, U, V>(
&'life0 self,
config: ReplacesConfig<T>
) -> Pin<Box<dyn Future<Output = DocMetaVecResult<U, V>> + Send + 'async_trait>>
where
T: Serialize + Send + Sync + 'async_trait,
U: Serialize + DeserializeOwned + Send + Sync + 'async_trait,
V: Serialize + DeserializeOwned + Send + Sync + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait;
fn update<'life0, 'async_trait, T, U, V>(
&'life0 self,
config: UpdateConfig<T>
) -> Pin<Box<dyn Future<Output = DocMetaResult<U, V>> + Send + 'async_trait>>
where
T: Serialize + Send + Sync + 'async_trait,
U: Serialize + DeserializeOwned + Send + Sync + 'async_trait,
V: Serialize + DeserializeOwned + Send + Sync + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait;
fn updates<'life0, 'async_trait, T, U, V>(
&'life0 self,
config: UpdatesConfig<T>
) -> Pin<Box<dyn Future<Output = DocMetaVecResult<U, V>> + Send + 'async_trait>>
where
T: Serialize + Send + Sync + 'async_trait,
U: Serialize + DeserializeOwned + Send + Sync + 'async_trait,
V: Serialize + DeserializeOwned + Send + Sync + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait;
fn delete<'life0, 'async_trait, U, V>(
&'life0 self,
config: DeleteConfig
) -> Pin<Box<dyn Future<Output = DocMetaResult<U, V>> + Send + 'async_trait>>
where
U: Serialize + DeserializeOwned + Send + Sync + 'async_trait,
V: Serialize + DeserializeOwned + Send + Sync + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait;
fn deletes<'life0, 'async_trait, T, U, V>(
&'life0 self,
config: DeletesConfig<T>
) -> Pin<Box<dyn Future<Output = DocMetaVecResult<U, V>> + Send + 'async_trait>>
where
T: Serialize + Send + Sync + 'async_trait,
U: Serialize + DeserializeOwned + Send + Sync + 'async_trait,
V: Serialize + DeserializeOwned + Send + Sync + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait;
}
Expand description
Document Operations
Required Methods§
sourcefn create<'life0, 'async_trait, T, U, V>(
&'life0 self,
config: CreateConfig<T>
) -> Pin<Box<dyn Future<Output = DocMetaResult<U, V>> + Send + 'async_trait>>where
T: Serialize + Send + Sync + 'async_trait,
U: Serialize + DeserializeOwned + Send + Sync + 'async_trait,
V: Serialize + DeserializeOwned + Send + Sync + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
fn create<'life0, 'async_trait, T, U, V>(
&'life0 self,
config: CreateConfig<T>
) -> Pin<Box<dyn Future<Output = DocMetaResult<U, V>> + Send + 'async_trait>>where
T: Serialize + Send + Sync + 'async_trait,
U: Serialize + DeserializeOwned + Send + Sync + 'async_trait,
V: Serialize + DeserializeOwned + Send + Sync + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
Create a document
sourcefn creates<'life0, 'async_trait, T, U, V>(
&'life0 self,
config: CreatesConfig<T>
) -> Pin<Box<dyn Future<Output = DocMetaVecResult<U, V>> + Send + 'async_trait>>where
T: Serialize + Send + Sync + 'async_trait,
U: Serialize + DeserializeOwned + Send + Sync + 'async_trait,
V: Serialize + DeserializeOwned + Send + Sync + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
fn creates<'life0, 'async_trait, T, U, V>(
&'life0 self,
config: CreatesConfig<T>
) -> Pin<Box<dyn Future<Output = DocMetaVecResult<U, V>> + Send + 'async_trait>>where
T: Serialize + Send + Sync + 'async_trait,
U: Serialize + DeserializeOwned + Send + Sync + 'async_trait,
V: Serialize + DeserializeOwned + Send + Sync + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
Create multiple documents
sourcefn read<'life0, 'async_trait, T>(
&'life0 self,
config: ReadConfig
) -> Pin<Box<dyn Future<Output = ArangoResult<T>> + Send + 'async_trait>>where
T: DeserializeOwned + Send + Sync + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
fn read<'life0, 'async_trait, T>(
&'life0 self,
config: ReadConfig
) -> Pin<Box<dyn Future<Output = ArangoResult<T>> + Send + 'async_trait>>where
T: DeserializeOwned + Send + Sync + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
Read a document
sourcefn reads<'life0, 'async_trait, T, U>(
&'life0 self,
config: ReadsConfig<T>
) -> Pin<Box<dyn Future<Output = ArangoVecResult<U>> + Send + 'async_trait>>where
T: Serialize + Send + Sync + 'async_trait,
U: Serialize + DeserializeOwned + Send + Sync + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
fn reads<'life0, 'async_trait, T, U>(
&'life0 self,
config: ReadsConfig<T>
) -> Pin<Box<dyn Future<Output = ArangoVecResult<U>> + Send + 'async_trait>>where
T: Serialize + Send + Sync + 'async_trait,
U: Serialize + DeserializeOwned + Send + Sync + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
Read multiple documents
sourcefn replace<'life0, 'async_trait, T, U, V>(
&'life0 self,
config: ReplaceConfig<T>
) -> Pin<Box<dyn Future<Output = DocMetaResult<U, V>> + Send + 'async_trait>>where
T: Serialize + Send + Sync + 'async_trait,
U: Serialize + DeserializeOwned + Send + Sync + 'async_trait,
V: Serialize + DeserializeOwned + Send + Sync + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
fn replace<'life0, 'async_trait, T, U, V>(
&'life0 self,
config: ReplaceConfig<T>
) -> Pin<Box<dyn Future<Output = DocMetaResult<U, V>> + Send + 'async_trait>>where
T: Serialize + Send + Sync + 'async_trait,
U: Serialize + DeserializeOwned + Send + Sync + 'async_trait,
V: Serialize + DeserializeOwned + Send + Sync + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
Replace a docment with the given document
sourcefn replaces<'life0, 'async_trait, T, U, V>(
&'life0 self,
config: ReplacesConfig<T>
) -> Pin<Box<dyn Future<Output = DocMetaVecResult<U, V>> + Send + 'async_trait>>where
T: Serialize + Send + Sync + 'async_trait,
U: Serialize + DeserializeOwned + Send + Sync + 'async_trait,
V: Serialize + DeserializeOwned + Send + Sync + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
fn replaces<'life0, 'async_trait, T, U, V>(
&'life0 self,
config: ReplacesConfig<T>
) -> Pin<Box<dyn Future<Output = DocMetaVecResult<U, V>> + Send + 'async_trait>>where
T: Serialize + Send + Sync + 'async_trait,
U: Serialize + DeserializeOwned + Send + Sync + 'async_trait,
V: Serialize + DeserializeOwned + Send + Sync + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
Replace multiple documents
sourcefn update<'life0, 'async_trait, T, U, V>(
&'life0 self,
config: UpdateConfig<T>
) -> Pin<Box<dyn Future<Output = DocMetaResult<U, V>> + Send + 'async_trait>>where
T: Serialize + Send + Sync + 'async_trait,
U: Serialize + DeserializeOwned + Send + Sync + 'async_trait,
V: Serialize + DeserializeOwned + Send + Sync + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
fn update<'life0, 'async_trait, T, U, V>(
&'life0 self,
config: UpdateConfig<T>
) -> Pin<Box<dyn Future<Output = DocMetaResult<U, V>> + Send + 'async_trait>>where
T: Serialize + Send + Sync + 'async_trait,
U: Serialize + DeserializeOwned + Send + Sync + 'async_trait,
V: Serialize + DeserializeOwned + Send + Sync + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
Update the given data in the given document
sourcefn updates<'life0, 'async_trait, T, U, V>(
&'life0 self,
config: UpdatesConfig<T>
) -> Pin<Box<dyn Future<Output = DocMetaVecResult<U, V>> + Send + 'async_trait>>where
T: Serialize + Send + Sync + 'async_trait,
U: Serialize + DeserializeOwned + Send + Sync + 'async_trait,
V: Serialize + DeserializeOwned + Send + Sync + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
fn updates<'life0, 'async_trait, T, U, V>(
&'life0 self,
config: UpdatesConfig<T>
) -> Pin<Box<dyn Future<Output = DocMetaVecResult<U, V>> + Send + 'async_trait>>where
T: Serialize + Send + Sync + 'async_trait,
U: Serialize + DeserializeOwned + Send + Sync + 'async_trait,
V: Serialize + DeserializeOwned + Send + Sync + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
Update the given data in the given documents
sourcefn delete<'life0, 'async_trait, U, V>(
&'life0 self,
config: DeleteConfig
) -> Pin<Box<dyn Future<Output = DocMetaResult<U, V>> + Send + 'async_trait>>where
U: Serialize + DeserializeOwned + Send + Sync + 'async_trait,
V: Serialize + DeserializeOwned + Send + Sync + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
fn delete<'life0, 'async_trait, U, V>(
&'life0 self,
config: DeleteConfig
) -> Pin<Box<dyn Future<Output = DocMetaResult<U, V>> + Send + 'async_trait>>where
U: Serialize + DeserializeOwned + Send + Sync + 'async_trait,
V: Serialize + DeserializeOwned + Send + Sync + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
Delete the given docment
sourcefn deletes<'life0, 'async_trait, T, U, V>(
&'life0 self,
config: DeletesConfig<T>
) -> Pin<Box<dyn Future<Output = DocMetaVecResult<U, V>> + Send + 'async_trait>>where
T: Serialize + Send + Sync + 'async_trait,
U: Serialize + DeserializeOwned + Send + Sync + 'async_trait,
V: Serialize + DeserializeOwned + Send + Sync + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
fn deletes<'life0, 'async_trait, T, U, V>(
&'life0 self,
config: DeletesConfig<T>
) -> Pin<Box<dyn Future<Output = DocMetaVecResult<U, V>> + Send + 'async_trait>>where
T: Serialize + Send + Sync + 'async_trait,
U: Serialize + DeserializeOwned + Send + Sync + 'async_trait,
V: Serialize + DeserializeOwned + Send + Sync + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
Deletes the given docments