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

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

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Wrap the input message T in a tonic::Request

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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