Trait ruarango::Document

source ·
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§

Create a document

Create multiple documents

Read a document

Read multiple documents

Replace a docment with the given document

Replace multiple documents

Update the given data in the given document

Update the given data in the given documents

Delete the given docment

Deletes the given docments

Implementors§