Struct tiny_firestore_odm::Collection [−][src]
pub struct Collection<T, K> where
T: Serialize + DeserializeOwned + 'static,
K: GrpcService<BoxBody> + 'static,
K::ResponseBody: Body + Send + Sync + 'static,
K::Error: Into<StdError>,
<K::ResponseBody as Body>::Error: Into<StdError> + Send, { /* fields omitted */ }
Implementations
impl<T, K> Collection<T, K> where
T: Serialize + DeserializeOwned + Unpin,
K: GrpcService<BoxBody>,
K::ResponseBody: Body + Send + Sync + 'static,
K::Error: Into<StdError>,
<K::ResponseBody as Body>::Error: Into<StdError> + Send,
impl<T, K> Collection<T, K> where
T: Serialize + DeserializeOwned + Unpin,
K: GrpcService<BoxBody>,
K::ResponseBody: Body + Send + Sync + 'static,
K::Error: Into<StdError>,
<K::ResponseBody as Body>::Error: Into<StdError> + Send,
Create the given document in this collection with the given key.
Returns an error if the key is already in use (if you intend to replace the
document in that case, use upsert
instead.)
Create the given document in this collection with the given key.
Returns true
if the document was created, or false
if it already existed.
Add the given document to this collection, assigning it a new key at random.
Auto Trait Implementations
impl<T, K> !RefUnwindSafe for Collection<T, K>
impl<T, K> Send for Collection<T, K> where
K: Send,
T: Send,
impl<T, K> Sync for Collection<T, K> where
K: Send,
T: Sync,
impl<T, K> Unpin for Collection<T, K> where
T: Unpin,
impl<T, K> !UnwindSafe for Collection<T, K>
Blanket Implementations
Mutably borrows from an owned value. Read more
Wrap the input message T
in a tonic::Request
pub fn vzip(self) -> V
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