pub struct BasicCollectionWithNoViews;Trait Implementations
The Id of this collection.
Defines all Views in this collection in schema.
Returns the configured instance of Self::Format.
Deserialize data as Self::Contents using this collection’s format.
Serialize item using this collection’s format.
Gets a CollectionDocument with id from connection.
fn get_multiple<'life0, 'life1, 'async_trait, C: Connection>(
ids: &'life0 [u64],
connection: &'life1 C
) -> Pin<Box<dyn Future<Output = Result<Vec<CollectionDocument<Self>>, Error>> + Send + 'async_trait>> where
Self: Sized,
C: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Self: Send + 'async_trait,
fn get_multiple<'life0, 'life1, 'async_trait, C: Connection>(
ids: &'life0 [u64],
connection: &'life1 C
) -> Pin<Box<dyn Future<Output = Result<Vec<CollectionDocument<Self>>, Error>> + Send + 'async_trait>> where
Self: Sized,
C: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Self: Send + 'async_trait,
Retrieves all documents matching ids. Documents that are not found
are not returned, but no error will be generated. Read more
fn list<R: Into<Range<u64>>, C: Connection>(
ids: R,
connection: &C
) -> List<'_, C, Self>ⓘNotable traits for List<'a, Cn, Cl>impl<'a, Cn, Cl> Future for List<'a, Cn, Cl> where
Cl: SerializedCollection + Unpin,
Cn: Connection, type Output = Result<Vec<CollectionDocument<Cl>>, Error>; where
Self: Sized,
fn list<R: Into<Range<u64>>, C: Connection>(
ids: R,
connection: &C
) -> List<'_, C, Self>ⓘNotable traits for List<'a, Cn, Cl>impl<'a, Cn, Cl> Future for List<'a, Cn, Cl> where
Cl: SerializedCollection + Unpin,
Cn: Connection, type Output = Result<Vec<CollectionDocument<Cl>>, Error>; where
Self: Sized,
impl<'a, Cn, Cl> Future for List<'a, Cn, Cl> where
Cl: SerializedCollection + Unpin,
Cn: Connection, type Output = Result<Vec<CollectionDocument<Cl>>, Error>;Retrieves all documents matching ids. Documents that are not found
are not returned, but no error will be generated. Read more
fn push<'life0, 'async_trait, Cn: Connection>(
contents: Self::Contents,
connection: &'life0 Cn
) -> Pin<Box<dyn Future<Output = Result<CollectionDocument<Self>, InsertError<Self::Contents>>> + Send + 'async_trait>> where
Self: Sized + 'static,
Self::Contents: 'async_trait,
Cn: 'async_trait,
'life0: 'async_trait,
Self: Send + 'async_trait,
fn push<'life0, 'async_trait, Cn: Connection>(
contents: Self::Contents,
connection: &'life0 Cn
) -> Pin<Box<dyn Future<Output = Result<CollectionDocument<Self>, InsertError<Self::Contents>>> + Send + 'async_trait>> where
Self: Sized + 'static,
Self::Contents: 'async_trait,
Cn: 'async_trait,
'life0: 'async_trait,
Self: Send + 'async_trait,
Pushes this value into the collection, returning the created document.
fn push_into<'life0, 'async_trait, Cn: Connection>(
self,
connection: &'life0 Cn
) -> Pin<Box<dyn Future<Output = Result<CollectionDocument<Self>, InsertError<Self>>> + Send + 'async_trait>> where
Self: SerializedCollection<Contents = Self> + Sized + 'static,
Cn: 'async_trait,
'life0: 'async_trait,
Self: Send + 'async_trait,
fn push_into<'life0, 'async_trait, Cn: Connection>(
self,
connection: &'life0 Cn
) -> Pin<Box<dyn Future<Output = Result<CollectionDocument<Self>, InsertError<Self>>> + Send + 'async_trait>> where
Self: SerializedCollection<Contents = Self> + Sized + 'static,
Cn: 'async_trait,
'life0: 'async_trait,
Self: Send + 'async_trait,
Pushes this value into the collection, returning the created document.
fn insert<'life0, 'async_trait, Cn: Connection>(
id: u64,
contents: Self::Contents,
connection: &'life0 Cn
) -> Pin<Box<dyn Future<Output = Result<CollectionDocument<Self>, InsertError<Self::Contents>>> + Send + 'async_trait>> where
Self: Sized + 'static,
Self::Contents: 'async_trait,
Cn: 'async_trait,
'life0: 'async_trait,
Self: Send + 'async_trait,
fn insert<'life0, 'async_trait, Cn: Connection>(
id: u64,
contents: Self::Contents,
connection: &'life0 Cn
) -> Pin<Box<dyn Future<Output = Result<CollectionDocument<Self>, InsertError<Self::Contents>>> + Send + 'async_trait>> where
Self: Sized + 'static,
Self::Contents: 'async_trait,
Cn: 'async_trait,
'life0: 'async_trait,
Self: Send + 'async_trait,
Inserts this value into the collection with the specified id, returning the created document. Read more
fn insert_into<'life0, 'async_trait, Cn: Connection>(
self,
id: u64,
connection: &'life0 Cn
) -> Pin<Box<dyn Future<Output = Result<CollectionDocument<Self>, InsertError<Self>>> + Send + 'async_trait>> where
Self: SerializedCollection<Contents = Self> + Sized + 'static,
Cn: 'async_trait,
'life0: 'async_trait,
Self: Send + 'async_trait,
fn insert_into<'life0, 'async_trait, Cn: Connection>(
self,
id: u64,
connection: &'life0 Cn
) -> Pin<Box<dyn Future<Output = Result<CollectionDocument<Self>, InsertError<Self>>> + Send + 'async_trait>> where
Self: SerializedCollection<Contents = Self> + Sized + 'static,
Cn: 'async_trait,
'life0: 'async_trait,
Self: Send + 'async_trait,
Inserts this value into the collection with the given id, returning
the created document. Read more
Auto Trait Implementations
impl RefUnwindSafe for BasicCollectionWithNoViews
impl Send for BasicCollectionWithNoViews
impl Sync for BasicCollectionWithNoViews
impl Unpin for BasicCollectionWithNoViews
impl UnwindSafe for BasicCollectionWithNoViews
Blanket Implementations
Mutably borrows from an owned value. Read more
Returns the unique SchemaName for this schema.
Defines the Collections into schema.
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more